From f61e339da91b7fff264f3c6f0ed67896a3f9ca4d Mon Sep 17 00:00:00 2001 From: irfnrdh Date: Tue, 20 Feb 2024 16:03:23 +0700 Subject: [PATCH] chore: remove unused code and update dev server configuration --- nuxt.config.ts | 18 ++++++++++++------ pages/index.vue | 2 +- server/api/auth/[...].ts | 7 ------- 3 files changed, 13 insertions(+), 14 deletions(-) delete mode 100644 server/api/auth/[...].ts diff --git a/nuxt.config.ts b/nuxt.config.ts index 6aab32b..e06b399 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -19,7 +19,6 @@ export default defineNuxtConfig({ "nuxt-icon", "@vee-validate/nuxt", "@morev/vue-transitions/nuxt", - "@sidebase/nuxt-auth" ], runtimeConfig: { @@ -67,10 +66,17 @@ export default defineNuxtConfig({ transpile: ["vue-sonner"] }, - auth : { - baseURL: process.env.AUTH_ORIGIN, - provider : { - type: 'authjs' - }, + devServer: { + https: { + key: './server.key', + cert: './server.crt' + } } + + // auth : { + // baseURL: process.env.AUTH_ORIGIN, + // provider : { + // type: 'authjs' + // }, + // } }); \ No newline at end of file diff --git a/pages/index.vue b/pages/index.vue index 403c468..3334c9d 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,7 +1,7 @@ diff --git a/server/api/auth/[...].ts b/server/api/auth/[...].ts deleted file mode 100644 index 6b8a12e..0000000 --- a/server/api/auth/[...].ts +++ /dev/null @@ -1,7 +0,0 @@ -// import {NuxtAuthHandler} from '#auth' -// import CreadentialsProvider from 'next-auth/provider/creadentials' - - -// export default NuxtAuthHandler({ -// secret : userRuntimeConfig(). -// }); \ No newline at end of file