mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
* Draft begins * Starte SvelteKit * Changes * Consolidate creating a client * Final draft * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Rework and simplify * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * improve spacing * last * Simplify example * Prettier * Fix hono, remove old pages, and add redirects * Remove from menu * Update apps/docs/content/guides/auth/server-side/creating-a-client.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Changes --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> Co-authored-by: Alan Daniel <stylesshjs@gmail.com>
34 lines
708 B
TypeScript
34 lines
708 B
TypeScript
import devServer from "@hono/vite-dev-server";
|
|
import { defineConfig } from "vite";
|
|
|
|
// Change the import to use your runtime specific build
|
|
import build from "@hono/vite-build/node";
|
|
|
|
export default defineConfig(({ mode }) => {
|
|
if (mode === "client")
|
|
return {
|
|
esbuild: {
|
|
jsxImportSource: "hono/jsx/dom", // Optimized for hono/jsx/dom
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
input: "./src/client.tsx",
|
|
output: {
|
|
entryFileNames: "static/client.js",
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
return {
|
|
plugins: [
|
|
build({
|
|
entry: "src/index.tsx",
|
|
}),
|
|
devServer({
|
|
entry: "src/index.tsx",
|
|
}),
|
|
],
|
|
};
|
|
});
|