mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 10:33:01 +00:00
fixed all warnings :D
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import path from "path";
|
||||
import path from "node:path";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
// @ts-expect-error process is a nodejs global
|
||||
const host = process.env.TAURI_DEV_HOST;
|
||||
|
||||
// https://vite.dev/config/
|
||||
@@ -23,8 +22,8 @@ export default defineConfig(async () => ({
|
||||
server: {
|
||||
port: 1420,
|
||||
strictPort: true,
|
||||
allowedHosts: ["issue.ob248.com"],
|
||||
host: host || false,
|
||||
allowedHosts: ["issue.ob248.com"],
|
||||
host: host || false,
|
||||
hmr: host
|
||||
? {
|
||||
protocol: "ws",
|
||||
|
||||
Reference in New Issue
Block a user