Asad Malik
Asad Malik
KKinde
Created by Asad Malik on 11/2/2024 in #💻┃support
NUXT. Vue. Error 500 while accessing /api/login, while it works fine when running dev server.
My nuxt config:
modules: [// '@nuxt/devtools',
'@pinia/nuxt', 'nuxt-swiper', "@nuxt/image", '@nuxtjs/kinde'],
pinia: {
storesDirs: ['./stores/**'],
},

kinde: {
debug: true,
},
experimental: {
appManifest: false,
},
ssr: true,
nitro: {
prerender: {
crawlLinks: false,
},
esbuild: {
options: {
target: 'esnext',
},
},
modules: [// '@nuxt/devtools',
'@pinia/nuxt', 'nuxt-swiper', "@nuxt/image", '@nuxtjs/kinde'],
pinia: {
storesDirs: ['./stores/**'],
},

kinde: {
debug: true,
},
experimental: {
appManifest: false,
},
ssr: true,
nitro: {
prerender: {
crawlLinks: false,
},
esbuild: {
options: {
target: 'esnext',
},
},
and .env
NUXT_KINDE_CLIENT_ID=01b3______________________e6
NUXT_KINDE_CLIENT_SECRET=_________________y
NUXT_KINDE_AUTH_DOMAIN=https://auth.REAL_DOMAIN_NAME.com
NUXT_KINDE_REDIRECT_URL=http://localhost:3000/api/callback
NUXT_KINDE_LOGOUT_REDIRECT_URL=http://localhost:3000/api/login
NUXT_KINDE_PASSWORD=r_________39
NUXT_KINDE_POST_LOGIN_REDIRECT_URL=http://localhost:3000
NUXT_KINDE_CLIENT_ID=01b3______________________e6
NUXT_KINDE_CLIENT_SECRET=_________________y
NUXT_KINDE_AUTH_DOMAIN=https://auth.REAL_DOMAIN_NAME.com
NUXT_KINDE_REDIRECT_URL=http://localhost:3000/api/callback
NUXT_KINDE_LOGOUT_REDIRECT_URL=http://localhost:3000/api/login
NUXT_KINDE_PASSWORD=r_________39
NUXT_KINDE_POST_LOGIN_REDIRECT_URL=http://localhost:3000
I am sure I am missing some setting here. Can you please point me to the right direction? Thank you.
4 replies