-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
84 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,78 @@ | ||
import { defineConfig } from "@solidjs/start/config"; | ||
|
||
export default defineConfig({}); | ||
export default defineConfig({ | ||
/** | ||
* Toggle between client and server rendering. | ||
* @default true | ||
*/ | ||
ssr: true, | ||
|
||
/** | ||
* Configuration object for [vite-plugin-solid](https://github.com/solidjs/vite-plugin-solid) | ||
*/ | ||
solid: {}, | ||
|
||
/** | ||
* Array of file extensions to be treated as routes. | ||
* @default ["js", "jsx", "ts", "tsx"] | ||
*/ | ||
extensions: ["js", "jsx", "ts", "tsx"], | ||
|
||
/** | ||
* Nitro server config options | ||
* | ||
* @see https://nitro.unjs.io/config | ||
*/ | ||
server: { | ||
preset: "cloudflare-pages", | ||
esbuild: { | ||
options: { | ||
// We need BigInt support (default: 2019) | ||
target: "esnext", | ||
}, | ||
}, | ||
}, | ||
|
||
/** | ||
* The path to the root of the application. | ||
* | ||
* @default "./src" | ||
*/ | ||
appRoot: "./src", | ||
|
||
/** | ||
* The path to where the routes are located. | ||
* | ||
* @default "./routes" | ||
*/ | ||
routeDir: "./routes", | ||
|
||
/** | ||
* The path to an optional middleware file. | ||
*/ | ||
middleware: undefined, | ||
|
||
/** | ||
* Toggle the dev overlay. | ||
* | ||
* @default true | ||
*/ | ||
devOverlay: true, | ||
|
||
experimental: { | ||
/** | ||
* Enable "islands" mode. | ||
*/ | ||
islands: false, | ||
}, | ||
|
||
/** | ||
* Vite config object. Can be configured for each router which has | ||
* the string value "server", "client" or "server-function"` | ||
* | ||
* @see https://vitejs.dev/config/shared-options.html | ||
*/ | ||
vite: { | ||
plugins: [], | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# https://developers.cloudflare.com/pages/functions/wrangler-configuration | ||
name = "solid-top-loading-bar" | ||
pages_build_output_dir = "dist" | ||
compatibility_date = "2024-11-17" | ||
|
||
# https://developers.cloudflare.com/workers/configuration/smart-placement/#smart-placement | ||
[placement] | ||
mode = "smart" |