fix: support optional static, routes and island dir in vite plugin (#3206)

This commit is contained in:
Marvin Hagemeister
2025-08-08 09:23:38 +02:00
committed by GitHub
parent 0664476e46
commit 22ebb2dbfa
12 changed files with 187 additions and 36 deletions
@@ -0,0 +1,3 @@
import { App } from "@fresh/core";
export const app = new App().fsRoutes();
@@ -0,0 +1,3 @@
export default function Hello() {
return <h1>ok</h1>;
}
@@ -0,0 +1,6 @@
import { defineConfig } from "vite";
import { fresh } from "@fresh/plugin-vite";
export default defineConfig({
plugins: [fresh()],
});
+3
View File
@@ -0,0 +1,3 @@
import { App } from "@fresh/core";
export const app = new App().get("/", () => new Response("ok"));
@@ -0,0 +1,6 @@
import { defineConfig } from "vite";
import { fresh } from "@fresh/plugin-vite";
export default defineConfig({
plugins: [fresh()],
});
+3
View File
@@ -0,0 +1,3 @@
import { App } from "@fresh/core";
export const app = new App().get("/ok", () => new Response("ok")).fsRoutes();
@@ -0,0 +1,3 @@
export default function Hello() {
return <h1>ok</h1>;
}
@@ -0,0 +1,6 @@
import { defineConfig } from "vite";
import { fresh } from "@fresh/plugin-vite";
export default defineConfig({
plugins: [fresh()],
});