an independent Bluesky client using Constellation, PDS Queries, and other services reddwarf.app
frontend spa bluesky reddwarf microcosm client app
99
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 9c34168fc5669df93ae2487a205c7594ff9c79a9 43 lines 1.0 kB view raw
1import { defineConfig } from "vite"; 2import viteReact from "@vitejs/plugin-react"; 3import tailwindcss from "@tailwindcss/vite"; 4import { generateMetadataPlugin } from "./oauthdev.mts"; 5 6const PROD_URL = "https://reddwarf.whey.party" 7const DEV_URL = "https://local3768forumtest.whey.party" 8 9function shp(url: string): string { 10 return url.replace(/^https?:\/\//, ''); 11} 12 13import { TanStackRouterVite } from "@tanstack/router-plugin/vite"; 14import { resolve } from "node:path"; 15 16// https://vitejs.dev/config/ 17export default defineConfig({ 18 plugins: [ 19 generateMetadataPlugin({ 20 prod: PROD_URL, 21 dev: DEV_URL, 22 }), 23 TanStackRouterVite({ autoCodeSplitting: true }), 24 viteReact(), 25 tailwindcss(), 26 ], 27 // test: { 28 // globals: true, 29 // environment: 'jsdom', 30 // }, 31 resolve: { 32 alias: { 33 "@": resolve(__dirname, "./src"), 34 "~": resolve(__dirname, "./src"), 35 }, 36 }, 37 server: { 38 allowedHosts: [shp(PROD_URL),shp(DEV_URL)], 39 }, 40 css: { 41 devSourcemap: true, 42 }, 43});