@astrojs/cloudflare 7.0.0 → 7.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -99,7 +99,7 @@ From an endpoint:
99
99
 
100
100
  ```js
101
101
  // src/pages/api/someFile.js
102
- export function get(context) {
102
+ export function GET(context) {
103
103
  const runtime = context.locals.runtime;
104
104
 
105
105
  return new Response('Some body');
@@ -149,7 +149,7 @@ See Cloudflare's documentation for [working with environment variables](https://
149
149
  ```js
150
150
  // pages/[id].json.js
151
151
 
152
- export function get({ params }) {
152
+ export function GET({ params }) {
153
153
  // Access environment variables per request inside a function
154
154
  const serverUrl = import.meta.env.SERVER_URL;
155
155
  const result = await fetch(serverUrl + "/user/" + params.id);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astrojs/cloudflare",
3
3
  "description": "Deploy your site to Cloudflare Workers/Pages",
4
- "version": "7.0.0",
4
+ "version": "7.0.2",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "withastro",
@@ -38,7 +38,7 @@
38
38
  "@astrojs/underscore-redirects": "0.3.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "astro": "^3.0.0"
41
+ "astro": "^3.0.9"
42
42
  },
43
43
  "devDependencies": {
44
44
  "chai": "^4.3.7",
@@ -46,7 +46,7 @@
46
46
  "kill-port": "^2.0.1",
47
47
  "mocha": "^10.2.0",
48
48
  "wrangler": "^3.5.1",
49
- "astro": "3.0.0",
49
+ "astro": "3.0.9",
50
50
  "astro-scripts": "0.0.14"
51
51
  },
52
52
  "scripts": {