Files
low-code-react-app-b/vite.config.ts
johndoe6345789 d15d527473 Generated by Spark: ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/src/main.tsx:1 Failed to load resource: the server responded with a status of 502 ()Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/src/main.tsx:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
(index):5  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
console.ts:4 FileSyncerContext: Established connection to file syncer
console.ts:4 FileSyncerContext: FileSyncer client created and connected
console.ts:4 FileSyncerContext: Codespaces file syncer started
console.ts:4 FileSyncerContext: Established connection to file syncer
console.ts:4 FileSyncerContext: FileSyncer client created and connected
console.ts:4 FileSyncerContext: Codespaces file syncer started
console.ts:4 connected to the Codespace
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:10  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@vite/client net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@vite/client:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:32  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/workspaces/spark-template/packages/spark-tools/dist/heartbeat.js net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/workspaces/spark-template/packages/spark-tools/dist/heartbeat.js:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:37  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/src/main.tsx net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/src/main.tsx:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:5  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh:1  Failed to load resource: the server responded with a status of 502 ()Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:10  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@vite/client net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:32  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/workspaces/spark-template/packages/spark-tools/dist/heartbeat.js net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:37  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/src/main.tsx net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:5  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:10  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@vite/client net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:32  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/workspaces/spark-template/packages/spark-tools/dist/heartbeat.js net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:37  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/src/main.tsx net::ERR_ABORTED 502 (Bad Gateway)Understand this error
ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/:5  GET https://ubiquitous-couscous-97464jg9j6ggh79x5-5000.app.github.dev/@react-refresh net::ERR_ABORTED 502 (Bad Gateway)
2026-01-17 01:55:35 +00:00

31 lines
748 B
TypeScript

import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react-swc";
import { defineConfig, PluginOption } from "vite";
import sparkPlugin from "@github/spark/spark-vite-plugin";
import createIconImportProxy from "@github/spark/vitePhosphorIconProxyPlugin";
import { resolve } from 'path'
const projectRoot = process.env.PROJECT_ROOT || import.meta.dirname
// https://vite.dev/config/
export default defineConfig({
plugins: [
react(),
tailwindcss(),
// DO NOT REMOVE
createIconImportProxy() as PluginOption,
sparkPlugin() as PluginOption,
],
resolve: {
alias: {
'@': resolve(projectRoot, 'src')
}
},
server: {
host: '0.0.0.0',
port: 5000,
strictPort: false,
},
});