-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] article intro, decode html author bio
- Loading branch information
1 parent
b7de27a
commit 6a0bf2f
Showing
6 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
|
||
|
||
|
||
const isProd=process.env.NODE_ENV=='production'; | ||
const isDev=process.env.NODE_ENV=='development'; | ||
const IS_PROD=process.env.NODE_ENV==='production'; | ||
const IS_DEV=process.env.NODE_ENV !=='production'; | ||
|
||
module.exports={ | ||
isProd, | ||
isDev | ||
IS_PROD, | ||
IS_DEV | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
const csurf=require("csurf"); | ||
const { isProd } = require("../constants"); | ||
const { IS_PROD } = require("../constants"); | ||
|
||
const csrfProtect=csurf({cookie:{ | ||
httpOnly:isProd, | ||
secure:isProd | ||
httpOnly:IS_PROD, | ||
secure:IS_PROD | ||
}}); | ||
|
||
module.exports={csrfProtect}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters