Skip to content

Commit

Permalink
frontend-admin: change baseUrl (remove /admin)
Browse files Browse the repository at this point in the history
  • Loading branch information
alphayax committed Nov 28, 2023
1 parent 7d0db1e commit cb51ca3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions front-admin/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// Plugins
import vue from '@vitejs/plugin-vue'
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
import vuetify, {transformAssetUrls} from 'vite-plugin-vuetify'
import ViteFonts from 'unplugin-fonts/vite'

// Utilities
import { defineConfig } from 'vite'
import { fileURLToPath, URL } from 'node:url'
import {defineConfig} from 'vite'
import {fileURLToPath, URL} from 'node:url'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue({
template: { transformAssetUrls },
template: {transformAssetUrls},
}),
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
vuetify({
Expand All @@ -31,8 +31,10 @@ export default defineConfig({
},
}),
],
base: '/admin/',
define: { 'process.env': {} },
base: '/',
define: {
'process.env': {}
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
Expand Down

0 comments on commit cb51ca3

Please sign in to comment.