Compare commits
2 Commits
e499c5aee2
...
20defc5b0f
| Author | SHA1 | Date | |
|---|---|---|---|
| 20defc5b0f | |||
| dcdb24c591 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,6 +11,7 @@ node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
docker-compose.yml
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
|
||||
@@ -5,6 +5,6 @@ RUN npm ci
|
||||
COPY . ./
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx
|
||||
FROM nginx:alpine
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
COPY nginx.conf.template /etc/nginx/templates/default.conf.template
|
||||
|
||||
@@ -1,38 +1,45 @@
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import * as path from "path";
|
||||
import { defineConfig } from 'vite';
|
||||
import { defineConfig, loadEnv } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'src': path.resolve(__dirname, './src/'),
|
||||
'@': path.resolve(__dirname, './src/'),
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd(), '');
|
||||
|
||||
return {
|
||||
plugins: [vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'src': path.resolve(__dirname, './src/'),
|
||||
'@': path.resolve(__dirname, './src/'),
|
||||
},
|
||||
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
|
||||
},
|
||||
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
strictPort: true,
|
||||
proxy: {
|
||||
'/api/': {
|
||||
target: 'https://api.eveal.shendai.rip/',
|
||||
changeOrigin: true,
|
||||
followRedirects: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
},
|
||||
'/appraisal/': {
|
||||
target: 'https://appraise.imperium.nexus/',
|
||||
changeOrigin: true,
|
||||
followRedirects: true,
|
||||
rewrite: (path) => path.replace(/^\/appraisal/, ''),
|
||||
},
|
||||
'/esi/': {
|
||||
target: 'https://esi.evetech.net/latest/',
|
||||
changeOrigin: true,
|
||||
followRedirects: true,
|
||||
rewrite: (path) => path.replace(/^\/esi/, ''),
|
||||
server: {
|
||||
port: 3000,
|
||||
strictPort: true,
|
||||
proxy: {
|
||||
'/api/': {
|
||||
target: `https://${env.API_URL}/`,
|
||||
changeOrigin: true,
|
||||
followRedirects: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
},
|
||||
'/appraisal/': {
|
||||
target: `https://${env.EVEPRAISAL_URL}/`,
|
||||
changeOrigin: true,
|
||||
followRedirects: true,
|
||||
rewrite: (path) => path.replace(/^\/appraisal/, ''),
|
||||
},
|
||||
'/esi/': {
|
||||
target: `https://${env.ESI_URL}/latest/`,
|
||||
changeOrigin: true,
|
||||
followRedirects: true,
|
||||
rewrite: (path) => path.replace(/^\/esi/, ''),
|
||||
headers: {
|
||||
'User-Agent': env.ESI_USER_AGENT
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user