mirror of
https://github.com/tiennm99/rplace.git
synced 2026-10-11 12:28:59 +00:00
- Handle base64 encoding from Upstash GETRANGE (atob fallback) - Add optimistic credit deduction on pixel placement - Handle non-ok API responses in placePixel - Enable WebSocket proxy in Vite dev config - Remove dead CANVAS_WIDTH/HEIGHT vars from wrangler.json - Suppress favicon 404 with empty data URI
20 lines
348 B
JavaScript
20 lines
348 B
JavaScript
import { defineConfig } from 'vite';
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
export default defineConfig({
|
|
plugins: [svelte()],
|
|
root: 'src',
|
|
build: {
|
|
outDir: '../dist',
|
|
emptyOutDir: true,
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8787',
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
});
|