Switch adapter from '@sveltejs/adapter-auto' to '@sveltejs/adapter-node' and add SvelteKitPWA plugin to Vite configuration

This commit is contained in:
2025-07-19 09:37:04 -04:00
parent 46300f540d
commit c60235f281
4 changed files with 4911 additions and 20 deletions

4922
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -13,9 +13,11 @@
},
"devDependencies": {
"@sveltejs/adapter-auto": "^6.0.0",
"@sveltejs/adapter-node": "^5.2.13",
"@sveltejs/kit": "^2.16.0",
"@sveltejs/vite-plugin-svelte": "^5.0.0",
"@tailwindcss/typography": "^0.5.16",
"@vite-pwa/sveltekit": "^1.0.0",
"daisyui": "^5.0.43",
"prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.3",

View File

@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-node';
/** @type {import('@sveltejs/kit').Config} */
const config = {

View File

@ -1,7 +1,8 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import tailwindcss from '@tailwindcss/vite'
import tailwindcss from '@tailwindcss/vite';
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
export default defineConfig({
plugins: [ tailwindcss(), sveltekit(),]
plugins: [tailwindcss(), sveltekit(), SvelteKitPWA()]
});