diff --git a/.gitignore b/.gitignore index b4a6f80..50d9267 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,6 @@ dist-ssr package-lock.json -*.db \ No newline at end of file +*.db + +.env* \ No newline at end of file diff --git a/package.json b/package.json index 2818e0c..cb3dcf3 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "preview": "vite preview", "ts": "vue-tsc --watch", "lint": "eslint . --ext ts --ext vue --max-warnings 0", - "surreal": "surreal start --log debug --user root --pass root --bind 0.0.0.0:14001 file:dev.db", + "surreal": "surreal start --log debug --user root --pass root --bind 0.0.0.0:14001 --auth --allow-guests file:dev.db", "deploy": "export NODE_ENV=\"production\" SURREAL_DATABASE=playrbase-deployment_$AWS_BRANCH && export NEXT_PUBLIC_SURREAL_DATABASE=$SURREAL_DATABASE && pnpm build" }, "dependencies": { diff --git a/src/main.ts b/src/main.ts index 82d339e..e49b2b1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,7 +4,7 @@ import DiscoverVue from '@/routes/Discover.vue'; import HomeVue from '@/routes/Home.vue'; import LibraryVue from '@/routes/Library.vue'; import '@/style.css'; -import { createApp } from 'vue'; +import { createSSRApp } from 'vue'; import { createMetaManager } from 'vue-meta'; import { createRouter, createWebHistory } from 'vue-router'; import RoughAuthVue from './routes/RoughAuth.vue'; @@ -32,4 +32,4 @@ const router = createRouter({ ], }); -createApp(App).use(router).use(createMetaManager()).mount('#app'); +createSSRApp(App).use(router).use(createMetaManager()).mount('#app');