TokenViewer now traces the image's alpha channel via /trace and extrudes the silhouette with @tts/mesh, aligning the texture using the full image as the UV framing. The texture is applied to the whole mesh (top, back, and walls) instead of separate solid-white walls.
17 lines
502 B
TypeScript
17 lines
502 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
// Proxy API calls to the Hono backend during development.
|
|
proxy: {
|
|
'/search': 'http://localhost:3000',
|
|
'/items': 'http://localhost:3000',
|
|
'/health': 'http://localhost:3000',
|
|
'/asset': 'http://localhost:3000',
|
|
'/trace': 'http://localhost:3000',
|
|
},
|
|
},
|
|
}); |