Skip to content

Commit

Permalink
型が効くように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Jan 27, 2024
1 parent 02bde8e commit 845b153
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(() => ({
base: './',
resolve: {
alias: {
Expand All @@ -15,7 +18,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 @@ -36,6 +39,4 @@ const config = {
globals: true,
environment: 'jsdom'
}
}

export default config
}))

0 comments on commit 845b153

Please sign in to comment.