diff --git a/.changeset/shy-months-invite.md b/.changeset/shy-months-invite.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/shy-months-invite.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/integration/presets/nuxt.ts b/integration/presets/nuxt.ts index 97fe3ef377..2762d07c9c 100644 --- a/integration/presets/nuxt.ts +++ b/integration/presets/nuxt.ts @@ -7,6 +7,7 @@ const nuxtNode = applicationConfig() .setName('nuxt-node') .useTemplate(templates['nuxt-node']) .setEnvFormatter('public', key => `NUXT_PUBLIC_${key}`) + .setEnvFormatter('private', key => `NUXT_${key}`) .addScript('setup', 'pnpm install') .addScript('dev', 'pnpm dev') .addScript('build', 'pnpm build') diff --git a/integration/templates/nuxt-node/nuxt.config.js b/integration/templates/nuxt-node/nuxt.config.js index ea7c01f015..e35608d38c 100644 --- a/integration/templates/nuxt-node/nuxt.config.js +++ b/integration/templates/nuxt-node/nuxt.config.js @@ -1,15 +1,3 @@ export default defineNuxtConfig({ modules: ['@clerk/nuxt'], - // The code below is only necessary in our test environment. - // Env vars are automatically read by Nuxt. See https://nuxt.com/docs/guide/going-further/runtime-config - runtimeConfig: { - public: { - clerk: { - publishableKey: process.env.NUXT_PUBLIC_CLERK_PUBLISHABLE_KEY, - }, - }, - clerk: { - secretKey: process.env.CLERK_SECRET_KEY, - }, - }, }); diff --git a/packages/nuxt/README.md b/packages/nuxt/README.md index ed490e3f34..467faa14aa 100644 --- a/packages/nuxt/README.md +++ b/packages/nuxt/README.md @@ -55,7 +55,7 @@ Make sure the following environment variables are set in a `.env` file in your N ``` NUXT_PUBLIC_CLERK_PUBLISHABLE_KEY=[publishable-key] -CLERK_SECRET_KEY=[secret-key] +NUXT_CLERK_SECRET_KEY=[secret-key] ``` Then, add `@clerk/nuxt` to the `modules` section of `nuxt.config.ts`: