This commit is contained in:
9
frontend/public/.htaccess
Normal file
9
frontend/public/.htaccess
Normal file
@@ -0,0 +1,9 @@
|
||||
AddType application/wasm .wasm
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule (.*) /index.html [QSA,L]
|
||||
</IfModule>
|
||||
@@ -5,7 +5,7 @@ import { resolve } from 'path';
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig(({ mode }) => ({
|
||||
plugins: [vue()],
|
||||
base: mode === 'production' ? '/covergen/' : '/',
|
||||
base: '/',
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(__dirname, './src'),
|
||||
|
||||
Reference in New Issue
Block a user