Skip to content

Commit

Permalink
refactor: move to SSR and new Vite/Inertia version
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Feb 28, 2024
1 parent 3d13520 commit bee2aa7
Show file tree
Hide file tree
Showing 10 changed files with 1,113 additions and 1,002 deletions.
5 changes: 5 additions & 0 deletions adonisrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,9 @@ export default defineConfig({
reloadServer: false,
},
],

assetsBundler: false,
unstable_assembler: {
onBuildStarting: [() => import('@adonisjs/vite/build_hook')],
},
})
3 changes: 3 additions & 0 deletions config/inertia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ import { defineConfig } from '@adonisjs/inertia'
export default defineConfig({
rootView: 'app_root',
assetsVersion: 1,
ssr: {
enabled: true,
},
})
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"test": "node ace test",
"lint": "eslint .",
"format": "prettier --write .",
"build:preview": "pnpm build && sed 's/NODE_ENV=development/NODE_ENV=production/' .env > ./build/.env && cp -r ./content ./build/ && cp -r ./tmp ./build/",
"quick:test": "node ace test",
"typecheck:adonis": "tsc --noEmit -p tsconfig.json",
"typecheck:vue": "vue-tsc --noEmit -p resources/tsconfig.json",
Expand All @@ -34,15 +35,15 @@
"#types/*": "./types/*.js"
},
"dependencies": {
"@adonisjs/cache": "1.0.0-1",
"@adonisjs/core": "6.2.0",
"@adonisjs/inertia": "1.0.0-7",
"@adonisjs/cache": "1.0.0-2",
"@adonisjs/core": "6.3.1",
"@adonisjs/inertia": "1.0.0-9",
"@adonisjs/lucid": "19.0.0",
"@adonisjs/session": "7.0.0",
"@adonisjs/shield": "8.0.1",
"@adonisjs/static": "^1.1.1",
"@adonisjs/vite": "2.0.2",
"@headlessui/vue": "^1.7.17",
"@adonisjs/vite": "3.0.0-3",
"@headlessui/vue": "^1.7.19",
"@inertiajs/vue3": "^1.0.14",
"@poppinss/utils": "^6.7.1",
"@resvg/resvg-js": "^2.6.0",
Expand Down Expand Up @@ -71,7 +72,7 @@
"vue": "^3.4.7"
},
"devDependencies": {
"@adonisjs/assembler": "7.0.0",
"@adonisjs/assembler": "7.2.2",
"@adonisjs/tsconfig": "^1.2.1",
"@faker-js/faker": "^8.3.1",
"@iconify/json": "^2.2.166",
Expand Down Expand Up @@ -101,7 +102,7 @@
"typescript": "~5.2.2",
"unocss": "^0.58.3",
"unocss-preset-radix": "^2.5.5",
"vite": "^5.0.11",
"vite": "^5.1.4",
"vue-tsc": "^1.8.27"
},
"prettier": "@julr/tooling-configs/prettier"
Expand Down
Loading

0 comments on commit bee2aa7

Please sign in to comment.