@@ -2,6 +2,9 @@ import { extensions } from '@libertech-fr/teaket_common'
22import pugPlugin from 'vite-plugin-pug'
33import { resolve } from 'node:path'
44
5+ const TK_APP_API_URL = process . env . TK_APP_API_URL || 'http://localhost:7100'
6+ const TK_APP_AUTH_SECRET = process . env . TK_APP_AUTH_SECRET
7+
58// https://nuxt.com/docs/api/configuration/nuxt-config
69export default defineNuxtConfig ( {
710 ssr : false ,
@@ -10,7 +13,7 @@ export default defineNuxtConfig({
1013 srcDir : 'src' ,
1114 debug : ! ! process . env . DEBUG ,
1215 devServer : {
13- port : 8000 ,
16+ port : 7000 ,
1417 } ,
1518 devtools : {
1619 enabled : process . env . NODE_ENV === 'development' ,
@@ -27,14 +30,12 @@ export default defineNuxtConfig({
2730 } ,
2831 modules : [
2932 'nuxt-api-party' ,
30- // '@hebilicious/authjs-nuxt',
31- // '@nuxtjs/auth-next',
3233 '@sidebase/nuxt-auth' ,
3334 'nuxt-quasar-ui' ,
3435 ...extensions . appSetup . default ( ) ,
3536 ] ,
3637 auth : {
37- baseURL : 'http://localhost:9000/ core/auth' ,
38+ baseURL : ` ${ TK_APP_API_URL } / core/auth` ,
3839 provider : {
3940 type : 'local' ,
4041 endpoints : {
@@ -49,33 +50,32 @@ export default defineNuxtConfig({
4950 } ,
5051 session : {
5152 enableRefreshOnWindowFocus : true ,
52- enableRefreshPeriodically : 5000 ,
53+ enableRefreshPeriodically : 5 * 60 * 1_000 ,
5354 } ,
5455 globalAppMiddleware : {
5556 isEnabled : true ,
5657 } ,
5758 } ,
5859 runtimeConfig : {
5960 authJs : {
60- secret : process . env . AUTH_SECRET ,
61- } ,
62- github : {
63- clientId : process . env . NUXT_GITHUB_CLIENT_ID ,
64- clientSecret : process . env . NUXT_GITHUB_CLIENT_SECRET ,
61+ secret : TK_APP_AUTH_SECRET ,
6562 } ,
6663 public : {
6764 authJs : {
68- baseUrl : process . env . NUXT_NEXTAUTH_URL , // The URL of your deployed app (used for origin Check in production)
65+ // baseUrl: process.env.NUXT_NEXTAUTH_URL, // The URL of your deployed app (used for origin Check in production)
6966 verifyClientOnEveryRequest : true , // whether to hit the /auth/session endpoint on every client request
7067 } ,
7168 } ,
7269 } ,
70+ appConfig : {
71+ customSlots : { } ,
72+ } ,
7373 quasar : { } ,
7474 apiParty : {
7575 endpoints : {
7676 api : {
77- url : ` ${ process . env . NUXT_API_URL } ` ,
78- schema : `${ process . env . NUXT_API_URL } /swagger/json` ,
77+ url : TK_APP_API_URL ,
78+ schema : `${ TK_APP_API_URL } /swagger/json` ,
7979 cookies : true ,
8080 } ,
8181 } ,
0 commit comments