@appconda/nextjs 1.0.79 → 1.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/env.js +4 -4
- package/package.json +1 -1
- package/src/actions/authOptions.ts +0 -2
- package/src/lib/env.ts +4 -4
package/dist/lib/env.js
CHANGED
@@ -111,10 +111,10 @@ export const env = createEnv({
|
|
111
111
|
* 💡 You'll get type errors if not all variables from `server` & `client` are included here.
|
112
112
|
*/
|
113
113
|
runtimeEnv: {
|
114
|
-
APPCONDA_ENDPOINT: process.env.APPCONDA_ENDPOINT,
|
115
|
-
APPCONDA_CLIENT_ENDPOINT: process.env.APPCONDA_CLIENT_ENDPOINT,
|
116
|
-
_SERVICE_TOKEN: process.env._SERVICE_TOKEN,
|
117
|
-
ENTERPRISE_LICENSE_KEY: process.env.ENTERPRISE_LICENSE_KEY,
|
114
|
+
APPCONDA_ENDPOINT: typeof window !== 'undefined' ? process.env.APPCONDA_ENDPOINT : "",
|
115
|
+
APPCONDA_CLIENT_ENDPOINT: typeof window !== 'undefined' ? process.env.APPCONDA_CLIENT_ENDPOINT : "",
|
116
|
+
_SERVICE_TOKEN: typeof window !== 'undefined' ? process.env._SERVICE_TOKEN : "",
|
117
|
+
ENTERPRISE_LICENSE_KEY: typeof window !== 'undefined' ? process.env.ENTERPRISE_LICENSE_KEY : "",
|
118
118
|
},
|
119
119
|
});
|
120
120
|
console.log(env);
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@appconda/nextjs",
|
3
3
|
"homepage": "https://appconda.io/support",
|
4
4
|
"description": "Appconda is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
5
|
-
"version": "1.0.
|
5
|
+
"version": "1.0.80",
|
6
6
|
"license": "BSD-3-Clause",
|
7
7
|
"main": "dist/index.js",
|
8
8
|
"types": "dist/index.d.ts",
|
package/src/lib/env.ts
CHANGED
@@ -113,10 +113,10 @@ export const env = createEnv({
|
|
113
113
|
* 💡 You'll get type errors if not all variables from `server` & `client` are included here.
|
114
114
|
*/
|
115
115
|
runtimeEnv: {
|
116
|
-
APPCONDA_ENDPOINT: process.env.APPCONDA_ENDPOINT,
|
117
|
-
APPCONDA_CLIENT_ENDPOINT: process.env.APPCONDA_CLIENT_ENDPOINT,
|
118
|
-
_SERVICE_TOKEN: process.env._SERVICE_TOKEN,
|
119
|
-
ENTERPRISE_LICENSE_KEY: process.env.ENTERPRISE_LICENSE_KEY,
|
116
|
+
APPCONDA_ENDPOINT: typeof window !== 'undefined' ? process.env.APPCONDA_ENDPOINT : "",
|
117
|
+
APPCONDA_CLIENT_ENDPOINT: typeof window !== 'undefined' ? process.env.APPCONDA_CLIENT_ENDPOINT : "",
|
118
|
+
_SERVICE_TOKEN: typeof window !== 'undefined' ? process.env._SERVICE_TOKEN : "",
|
119
|
+
ENTERPRISE_LICENSE_KEY: typeof window !== 'undefined' ? process.env.ENTERPRISE_LICENSE_KEY : "",
|
120
120
|
},
|
121
121
|
});
|
122
122
|
|