Something went wrong. Try again.
an independent Bluesky client using Constellation, PDS Queries, and other services forked from whey.party/red-dwarf
Something went wrong. Try again.
red-dwarf vite.config.ts
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849import { resolve } from "node:path";
import tailwindcss from "@tailwindcss/vite";import { TanStackRouterVite } from "@tanstack/router-plugin/vite";import viteReact from "@vitejs/plugin-react";import { defineConfig } from "vite";
import { generateMetadataPlugin } from "./oauthdev.mts";
const PROD_URL = "https://reddwarf.whey.party"const DEV_URL = "https://local3768forumtest.whey.party"
function shp(url: string): string { return url.replace(/^https?:\/\//, '');}
// https://vitejs.dev/config/export default defineConfig({ plugins: [ generateMetadataPlugin({ prod: PROD_URL, dev: DEV_URL, }), TanStackRouterVite({ autoCodeSplitting: true }), viteReact({ babel: { plugins: ['babel-plugin-react-compiler'], }, }), tailwindcss(), ], // test: { // globals: true, // environment: 'jsdom', // }, resolve: { alias: { "@": resolve(__dirname, "./src"), "~": resolve(__dirname, "./src"), }, }, server: { allowedHosts: [shp(PROD_URL),shp(DEV_URL)], }, css: { devSourcemap: true, },});