try
This commit is contained in:
parent
4ae2e3563d
commit
48815fca01
2 changed files with 4 additions and 8 deletions
|
|
@ -1,9 +1,9 @@
|
|||
server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
# Use 'alias' to map the specific sub-path
|
||||
location /lab/data-dashboard/ {
|
||||
alias /usr/share/nginx/html/;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,6 @@ import { defineConfig } from 'vite';
|
|||
import react from '@vitejs/plugin-react';
|
||||
|
||||
export default defineConfig({
|
||||
// vite.config.ts
|
||||
base: '/',
|
||||
base: '/lab/data-dashboard/', // This tells Vite to prepend this to all paths
|
||||
plugins: [react()],
|
||||
worker: {
|
||||
format: 'es',
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue