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

Commit

Permalink
SSR drop-in
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazel committed Nov 21, 2023
1 parent 995d2bd commit 0555931
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ dist-ssr

package-lock.json

*.db
*.db

.env*
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -32,4 +32,4 @@ const router = createRouter({
],
});

createApp(App).use(router).use(createMetaManager()).mount('#app');
createSSRApp(App).use(router).use(createMetaManager()).mount('#app');

0 comments on commit 0555931

Please sign in to comment.