@cedarjs/cli 6.0.0-canary.2819 → 6.0.0-canary.2820

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.
@@ -54,7 +54,7 @@ const getRenderYamlContent = async (database) => {
54
54
  const notes = [
55
55
  "You are ready to deploy to Render!\n",
56
56
  "Go to https://dashboard.render.com/iacs to create your account and deploy to Render",
57
- "Check out the deployment docs at https://render.com/docs/deploy-redwood for detailed instructions",
57
+ "Check out the deployment docs at https://cedarjs.com/docs/deploy/render for detailed instructions",
58
58
  "Note: After first deployment to Render update the rewrite rule destination in `./render.yaml`"
59
59
  ];
60
60
  const additionalFiles = [
@@ -5,13 +5,15 @@ const PROJECT_NAME = path.basename(getPaths().base);
5
5
  const RENDER_YAML = (database) => {
6
6
  const apiUrl = getUserApiUrl().replace(/\/$/, "");
7
7
  return `# Quick links to the docs:
8
- # - Redwood on Render: https://render.com/docs/deploy-redwood
9
- # - Render's Blueprint spec: https://render.com/docs/yaml-spec
8
+ # - Deploying Cedar: https://cedarjs.com/docs/deploy/render
9
+ # - Render's own walkthrough (uses \`yarn rw\`, but just swap in \`yarn cedar\`):
10
+ # https://render.com/docs/deploy-redwood
11
+ # - Render's Blueprint spec: https://render.com/docs/blueprint-spec
10
12
 
11
13
  services:
12
14
  - name: ${PROJECT_NAME}-web
13
15
  type: web
14
- env: static
16
+ runtime: static
15
17
  buildCommand: npm install --global corepack && yarn install && yarn cedar deploy render web
16
18
  staticPublishPath: ./web/dist
17
19
 
@@ -22,11 +24,16 @@ services:
22
24
  routes:
23
25
  - type: rewrite
24
26
  source: ${apiUrl}/*
25
- # Replace \`destination\` here after your first deploy:
27
+ # Replace \`destination\` after your first deploy, with the api service's
28
+ # URL from the Render dashboard:
26
29
  #
27
30
  # \`\`\`
28
- # destination: https://my-redwood-project-api.onrender.com/*
31
+ # destination: https://${PROJECT_NAME}-api.onrender.com/*
29
32
  # \`\`\`
33
+ #
34
+ # This can't be filled in automatically \u2014 Render's \`fromService\` only
35
+ # resolves service hosts into \`envVars\`, not into a static site's route
36
+ # destination.
30
37
  destination: replace_with_api_url/*
31
38
  - type: rewrite
32
39
  source: /*
@@ -35,7 +42,7 @@ services:
35
42
  - name: ${PROJECT_NAME}-api
36
43
  type: web
37
44
  plan: free
38
- env: node
45
+ runtime: node
39
46
  region: oregon
40
47
  buildCommand: npm install --global corepack && yarn install && yarn cedar build api
41
48
  startCommand: yarn cedar deploy render api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "6.0.0-canary.2819",
3
+ "version": "6.0.0-canary.2820",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,17 +33,17 @@
33
33
  "dependencies": {
34
34
  "@babel/parser": "7.29.7",
35
35
  "@babel/preset-typescript": "7.29.7",
36
- "@cedarjs/api-server": "6.0.0-canary.2819",
37
- "@cedarjs/cli-helpers": "6.0.0-canary.2819",
38
- "@cedarjs/fastify-web": "6.0.0-canary.2819",
39
- "@cedarjs/internal": "6.0.0-canary.2819",
40
- "@cedarjs/prerender": "6.0.0-canary.2819",
41
- "@cedarjs/project-config": "6.0.0-canary.2819",
42
- "@cedarjs/structure": "6.0.0-canary.2819",
43
- "@cedarjs/telemetry": "6.0.0-canary.2819",
44
- "@cedarjs/utils": "6.0.0-canary.2819",
45
- "@cedarjs/vite": "6.0.0-canary.2819",
46
- "@cedarjs/web-server": "6.0.0-canary.2819",
36
+ "@cedarjs/api-server": "6.0.0-canary.2820",
37
+ "@cedarjs/cli-helpers": "6.0.0-canary.2820",
38
+ "@cedarjs/fastify-web": "6.0.0-canary.2820",
39
+ "@cedarjs/internal": "6.0.0-canary.2820",
40
+ "@cedarjs/prerender": "6.0.0-canary.2820",
41
+ "@cedarjs/project-config": "6.0.0-canary.2820",
42
+ "@cedarjs/structure": "6.0.0-canary.2820",
43
+ "@cedarjs/telemetry": "6.0.0-canary.2820",
44
+ "@cedarjs/utils": "6.0.0-canary.2820",
45
+ "@cedarjs/vite": "6.0.0-canary.2820",
46
+ "@cedarjs/web-server": "6.0.0-canary.2820",
47
47
  "@listr2/prompt-adapter-enquirer": "4.3.0",
48
48
  "@opentelemetry/api": "1.9.1",
49
49
  "@opentelemetry/core": "1.30.1",