fix: Make all network requests go through for Fresh server (#28)
This commit is contained in:
parent
33dbdfefcc
commit
11413d6d94
5
dev.ts
5
dev.ts
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env -S deno run -A --watch=static/,routes/
|
||||
|
||||
import dev from "$fresh/dev.ts";
|
||||
import config from "./fresh.config.ts";
|
||||
|
||||
await dev(import.meta.url, "./main.ts");
|
||||
await dev(import.meta.url, "./main.ts", config);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
import { defineConfig } from "$fresh/server.ts";
|
||||
import twindPlugin from "$fresh/plugins/twindv1.ts";
|
||||
import twindConfig from "./twind.config.ts";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [twindPlugin(twindConfig)],
|
||||
});
|
||||
6
main.ts
6
main.ts
|
|
@ -1,7 +1,5 @@
|
|||
import { start } from "$fresh/server.ts";
|
||||
import manifest from "./fresh.gen.ts";
|
||||
import config from "./fresh.config.ts";
|
||||
|
||||
import twindPlugin from "$fresh/plugins/twindv1.ts";
|
||||
import twindConfig from "./twind.config.ts";
|
||||
|
||||
await start(manifest, { plugins: [twindPlugin(twindConfig)] });
|
||||
await start(manifest, config);
|
||||
|
|
|
|||
Loading…
Reference in New Issue