feat: WEB-210 Updated nexjs plugin
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
"@contentstack/live-preview-utils": "^1.4.0",
|
"@contentstack/live-preview-utils": "^1.4.0",
|
||||||
"@hookform/error-message": "^2.0.1",
|
"@hookform/error-message": "^2.0.1",
|
||||||
"@hookform/resolvers": "^3.3.4",
|
"@hookform/resolvers": "^3.3.4",
|
||||||
"@netlify/plugin-nextjs": "^5.1.1",
|
"@netlify/plugin-nextjs": "^5.3.3",
|
||||||
"@radix-ui/react-slot": "^1.0.2",
|
"@radix-ui/react-slot": "^1.0.2",
|
||||||
"@scandic-hotels/design-system": "git+https://x-token-auth:$DESIGN_SYSTEM_ACCESS_TOKEN@bitbucket.org/scandic-swap/design-system.git#v0.1.0-rc.8",
|
"@scandic-hotels/design-system": "git+https://x-token-auth:$DESIGN_SYSTEM_ACCESS_TOKEN@bitbucket.org/scandic-swap/design-system.git#v0.1.0-rc.8",
|
||||||
"@t3-oss/env-nextjs": "^0.9.2",
|
"@t3-oss/env-nextjs": "^0.9.2",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { env } from "@/env/server"
|
|||||||
|
|
||||||
export default function encryptValue(originalString: string) {
|
export default function encryptValue(originalString: string) {
|
||||||
let result = ""
|
let result = ""
|
||||||
console.log(process.env.NODE_OPTIONS)
|
console.log("Node_Options: ", process.env.NODE_OPTIONS)
|
||||||
try {
|
try {
|
||||||
const encryptionKey = env.BOOKING_ENCRYPTION_KEY
|
const encryptionKey = env.BOOKING_ENCRYPTION_KEY
|
||||||
const bufferKey = Buffer.from(encryptionKey, "utf8")
|
const bufferKey = Buffer.from(encryptionKey, "utf8")
|
||||||
@@ -18,7 +18,6 @@ export default function encryptValue(originalString: string) {
|
|||||||
cipher.final()
|
cipher.final()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
result = "error"
|
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user