Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
chore: load playground variables from env
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerNico committed May 16, 2023
1 parent c80122d commit a30fbd3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ export default defineNuxtConfig({
modules: ['../src/module'],
ssr: true,
logto: {
appId: '<your-application-id>',
appSecret: '<your-app-secret-copied-from-console>',
endpoint: '<your-logto-endpoint>',
origin: '<your-nextjs-app-origin>',
appId: process.env.LOGTO_APP_ID,
appSecret: process.env.LOGTO_APP_SECRET,
endpoint: process.env.LOGTO_ENDPOINT,
origin: 'http://localhost:3000',
basePath: '/api/logto',
cookieSecret: 'complex_password_at_least_32_characters_long',
cookieSecure: process.env.NODE_ENV === 'production',
resources: ['<your-resource-id>'],
resources: [],
},
})

0 comments on commit a30fbd3

Please sign in to comment.