strip
This commit is contained in:
parent
2422e134a5
commit
9e8330c0cd
2 changed files with 3 additions and 7 deletions
|
|
@ -3,12 +3,7 @@ server {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
location = /lab/data-dashboard {
|
location / {
|
||||||
return 301 /lab/data-dashboard/;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /lab/data-dashboard/ {
|
|
||||||
rewrite ^/lab/data-dashboard/(.*)$ /$1 break;
|
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@ import { defineConfig } from 'vite';
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: '/lab/data-dashboard/',
|
b// vite.config.ts
|
||||||
|
base: '/',
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
worker: {
|
worker: {
|
||||||
format: 'es',
|
format: 'es',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue