File tree Expand file tree Collapse file tree 4 files changed +52
-0
lines changed Expand file tree Collapse file tree 4 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 21
21
@apply bg-jsr-yellow-400 border-jsr-cyan-950 !text-jsr-cyan-950 border-2
22
22
hover:!no-underline hover:bg-jsr-yellow-300;
23
23
}
24
+
25
+ .deploy-button {
26
+ padding-left : 3rem ;
27
+ background-image : url ("../deno-deploy.svg" );
28
+ background-repeat : no-repeat;
29
+ background-position : 1rem center;
30
+ background-size : 2rem ;
31
+ }
Original file line number Diff line number Diff line change
1
+ export default function DeployCTA ( ) {
2
+ return (
3
+ < a
4
+ href = "https://app.deno.com/"
5
+ className = "docs-cta deploy-cta deploy-button"
6
+ >
7
+ Deno Deploy
8
+ </ a >
9
+ ) ;
10
+ }
11
+
12
+ export const css = "@import './_components/CTA.css';" ;
Original file line number Diff line number Diff line change @@ -277,6 +277,29 @@ details!
277
277
278
278
![ demo of the app] ( ./images/how-to/next/dinoapp.gif )
279
279
280
+ ## Deploy your app
281
+
282
+ Now that you have a Next.js app, you can deploy it to the web with Deno
283
+ Deploy<sup >EA</sup >. Deno Deploy requires your code to be hosted on GitHub to
284
+ access and deploy it, so first you'll need to create a GitHub repository and
285
+ push your app there.
286
+
287
+ [ Create a new GitHub repository] ( https://github.com/new ) , then initialize and
288
+ push your app to GitHub:
289
+
290
+ ``` sh
291
+ git init -b main
292
+ git remote add origin https://github.com/< your_github_username> /< your_repo_name> .git
293
+ git add .
294
+ git commit -am ' my next app'
295
+ git push -u origin main
296
+ ```
297
+
298
+ Once your app is on GitHub, you can deploy it on the Deno Deploy<sup >EA</sup >
299
+ dashboard:
300
+ <a href =" https://app.deno.com/ " class =" docs-cta deploy-cta deploy-button " >Deploy
301
+ my app</a >
302
+
280
303
🦕 Now you can build and run a Next.js app with Deno! To build on your app you
281
304
could consider [ adding a database] ( /runtime/tutorials/connecting_to_databases/ )
282
305
to replace your ` data.json ` file, or consider
Original file line number Diff line number Diff line change @@ -110,6 +110,15 @@ Call to action button with different colors based on their `type` prop
110
110
111
111
<comp.CTA href = " https://deno.com" type = " deploy" >Get started</comp.CTA ><br />
112
112
113
+ ## Deploy on Deploy
114
+
115
+ Call to action button with the Deno Deploy logo. Should be used with additional copy.
116
+ ``` tsx
117
+ <comp.DeployCTA />
118
+ ```
119
+
120
+ Deploy your application to the edge: <comp.DeployCTA />
121
+
113
122
## Admonition
114
123
115
124
A box to highlight information. Must be of type
You can’t perform that action at this time.
0 commit comments