fix: support optional static, routes and island dir in vite plugin (#3206)
This commit is contained in:
@@ -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()],
|
||||
});
|
||||
@@ -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()],
|
||||
});
|
||||
@@ -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()],
|
||||
});
|
||||
Reference in New Issue
Block a user