feat: WEB-210 Removed unnecessary env changes and logs
This commit is contained in:
2
env/server.ts
vendored
2
env/server.ts
vendored
@@ -58,7 +58,6 @@ export const env = createEnv({
|
||||
SEAMLESS_LOGOUT_SV: z.string(),
|
||||
WEBVIEW_ENCRYPTION_KEY: z.string(),
|
||||
BOOKING_ENCRYPTION_KEY: z.string(),
|
||||
NODE_OPTIONS: z.string(),
|
||||
},
|
||||
emptyStringAsUndefined: true,
|
||||
runtimeEnv: {
|
||||
@@ -104,6 +103,5 @@ export const env = createEnv({
|
||||
SEAMLESS_LOGOUT_SV: process.env.SEAMLESS_LOGOUT_SV,
|
||||
WEBVIEW_ENCRYPTION_KEY: process.env.WEBVIEW_ENCRYPTION_KEY,
|
||||
BOOKING_ENCRYPTION_KEY: process.env.BOOKING_ENCRYPTION_KEY,
|
||||
NODE_OPTIONS: process.env.NODE_OPTIONS,
|
||||
},
|
||||
})
|
||||
|
||||
@@ -22,7 +22,6 @@ wait-on-timeout = "30" # seconds
|
||||
# cache Cypress binary in local "node_modules" folder
|
||||
# so Netlify caches it
|
||||
CYPRESS_CACHE_FOLDER = "./node_modules/CypressBinary"
|
||||
NODE_OPTIONS = "--openssl-legacy-provider"
|
||||
# set TERM variable for terminal output
|
||||
TERM = "xterm"
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"prelint:fix": "rm -rf .next",
|
||||
"lint:fix": "next lint --fix --max-warnings 0 && tsc",
|
||||
"prepare": "husky",
|
||||
"start": "node --openssl-legacy-provider .next/standalone/server.js",
|
||||
"start": "node .next/standalone/server.js",
|
||||
"test:component": "cypress open --component",
|
||||
"test:component:headless": "cypress run --component",
|
||||
"test:e2e": "start-server-and-test test:setup http://127.0.0.1:3000/en/sponsoring \"cypress open --e2e\"",
|
||||
|
||||
@@ -4,7 +4,6 @@ import { env } from "@/env/server"
|
||||
|
||||
export default function encryptValue(originalString: string) {
|
||||
let result = ""
|
||||
console.log("Node_Options: ", process.env.NODE_OPTIONS)
|
||||
try {
|
||||
const encryptionKey = env.BOOKING_ENCRYPTION_KEY
|
||||
const bufferKey = Buffer.from(encryptionKey, "utf8")
|
||||
|
||||
Reference in New Issue
Block a user