Skip to content

Commit

Permalink
feat: wrangler
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanaden committed Nov 17, 2024
1 parent db5734b commit ecdaf5a
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 1 deletion.
77 changes: 76 additions & 1 deletion dev/app.config.ts
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: [],
},
});
8 changes: 8 additions & 0 deletions dev/wrangler.toml
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"

0 comments on commit ecdaf5a

Please sign in to comment.