Skip to content

Commit

Permalink
型が効くように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Jan 28, 2024
1 parent 4571e39 commit bf4989b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
/// <reference types="vitest" />

import { defineConfig } from 'vite'
import path from 'path'
import VuePlugin from '@vitejs/plugin-vue'
import PurgeIcons from 'vite-plugin-purge-icons'

const srcPath = path.resolve(__dirname, 'src').replace(/\\/g, '/')

const config = {
export default defineConfig(() => ({
resolve: {
alias: {
'/@': srcPath
Expand All @@ -14,7 +17,7 @@ const config = {
proxy: {
'/api': {
target: 'http://localhost:4010',
rewrite: (path: string) => path.replace('/api/v1', '/'),
rewrite: path => path.replace('/api/v1', '/'),
changeOrigin: true
}
}
Expand All @@ -35,6 +38,4 @@ const config = {
globals: true,
environment: 'jsdom'
}
}

export default config
}))

0 comments on commit bf4989b

Please sign in to comment.