Sha256: f46970e4177eced8be32ece564b4d025fa24683068724c7b78f105a5672b67b6

Contents?: true

Size: 493 Bytes

Versions: 18

Compression:

Stored size: 493 Bytes

Contents

import { fileURLToPath, URL } from "node:url"

import vue from "@vitejs/plugin-vue"
import { defineConfig } from "vite"

const env = process.env
const target = env.BACKEND_URL || "http://localhost:9292/"
const port = parseInt(env.port || "8080")

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    port,
    proxy: {
      "/api": target
    }
  },
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", import.meta.url))
    }
  }
})

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mihari-5.7.0 frontend/vite.config.ts
mihari-5.6.2 frontend/vite.config.ts
mihari-5.6.1 frontend/vite.config.ts
mihari-5.6.0 frontend/vite.config.ts
mihari-5.5.0 frontend/vite.config.ts
mihari-5.4.9 frontend/vite.config.ts
mihari-5.4.8 frontend/vite.config.ts
mihari-5.4.7 frontend/vite.config.ts
mihari-5.4.6 frontend/vite.config.ts
mihari-5.4.5 frontend/vite.config.ts
mihari-5.4.4 frontend/vite.config.ts
mihari-5.4.3 frontend/vite.config.ts
mihari-5.4.2 frontend/vite.config.ts
mihari-5.4.1 frontend/vite.config.ts
mihari-5.4.0 frontend/vite.config.ts
mihari-5.3.2 frontend/vite.config.ts
mihari-5.3.1 frontend/vite.config.ts
mihari-5.3.0 frontend/vite.config.ts