We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7b956d commit 5f140cdCopy full SHA for 5f140cd
packages/nuxt/src/module.ts
@@ -107,6 +107,11 @@ export default defineNuxtModule<VueFireNuxtModuleOptions>({
107
logger.debug(
108
`Using app check debug token from env variable "${process.env.FIREBASE_APPCHECK_DEBUG_TOKEN}"`
109
)
110
+ if (process.env.NODE_ENV === 'production' && options.appCheck.debug) {
111
+ logger.warn(
112
+ 'You are using a debug token in production, DO NOT DEPLOY THIS BUILD. If you do, you will leak your debug app check token.'
113
+ )
114
+ }
115
options.appCheck.debug = process.env.FIREBASE_APPCHECK_DEBUG_TOKEN
116
}
117
addPlugin(resolve(runtimeDir, 'app-check/plugin.client'))
0 commit comments