Skip to content

Commit

Permalink
Apache サブディレクトリー用設定
Browse files Browse the repository at this point in the history
  • Loading branch information
try0 committed Apr 29, 2024
1 parent c835137 commit 61d7811
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
13 changes: 7 additions & 6 deletions spa-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
"@fontsource/fira-mono": "^4.5.10",
"@neoconfetti/svelte": "^1.0.0",
"@playwright/test": "^1.28.1",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-static": "^2.0.2",
"@sveltejs/kit": "^1.20.4",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-static": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/cookie": "^0.5.1",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
Expand All @@ -37,8 +38,8 @@
"tailwindcss": "^3.3.3",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.4.2",
"vitest": "^0.32.2",
"vite": "^5.0.0",
"vitest": "^1.0.0",
"zod": "^3.21.4"
},
"type": "module",
Expand All @@ -47,4 +48,4 @@
"svelte-awesome": "^3.2.1",
"zod-i18n-map": "^2.13.2"
}
}
}
8 changes: 8 additions & 0 deletions spa-example/static/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /sveltekit-example
RewriteRule ^/sveltekit-example/index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /sveltekit-example/index.html [L]
</IfModule>
2 changes: 1 addition & 1 deletion spa-example/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/kit/vite';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

const dev = process.argv.includes('dev');

Expand Down

0 comments on commit 61d7811

Please sign in to comment.