-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make sure C3 works with the latest astro versions (experimental)
- Loading branch information
1 parent
62fded8
commit 2cf4c69
Showing
6 changed files
with
37 additions
and
2 deletions.
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
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
packages/create-cloudflare/templates-experimental/astro/templates/ts/env.d.ts
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,5 @@ | ||
type Runtime = import("@astrojs/cloudflare").Runtime<Env>; | ||
|
||
declare namespace App { | ||
interface Locals extends Runtime {} | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/create-cloudflare/templates-experimental/astro/templates/ts/public/.assetsignore
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,4 @@ | ||
_worker.js | ||
_routes.json | ||
_headers | ||
_redirects |
12 changes: 12 additions & 0 deletions
12
packages/create-cloudflare/templates-experimental/astro/templates/ts/wrangler.toml
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,12 @@ | ||
#:schema node_modules/wrangler/config-schema.json | ||
name = "<TBD>" | ||
compatibility_date = "<TBD>" | ||
compatibility_flags = ["nodejs_compat_v2"] | ||
main = "./dist/_worker.js/index.js" | ||
assets = { directory = "./dist", binding = "ASSETS" } | ||
|
||
# Workers Logs | ||
# Docs: https://developers.cloudflare.com/workers/observability/logs/workers-logs/ | ||
# Configuration: https://developers.cloudflare.com/workers/observability/logs/workers-logs/#enable-workers-logs | ||
[observability] | ||
enabled = true |