You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line `require("./ngrok.config.js");` is added to `next.config.js` which includes the code to setup the ngrok listener on the appropriate port, which defaults to `3000`.
8
+
9
+
# Example Output
10
+
11
+
```
12
+
> node_modules/.bin/next
13
+
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
14
+
warn - Detected next.config.js, no exported configuration found. https://nextjs.org/docs/messages/empty-configuration
15
+
event - compiled client and server successfully in 210 ms (154 modules)
16
+
Forwarding to: localhost:3000 from ingress at: https://04d4d919d236.ngrok.app
This starts your app in development mode, rebuilding assets on file changes.
14
10
15
-
## Deployment
11
+
#Explanation
16
12
17
-
First, build your app for production:
13
+
The line `require("./ngrok.config.js");` is added to `remix.config.js` which includes the code to setup the ngrok listener on the appropriate port, which defaults to `3000`.
18
14
19
-
```sh
20
-
npm run build
21
-
```
22
-
23
-
Then run the app in production mode:
15
+
# Example Output
24
16
25
-
```sh
26
-
npm start
27
17
```
18
+
> npm run dev
28
19
29
-
Now you'll need to pick a host to deploy it to.
20
+
> dev
21
+
> remix dev
30
22
31
-
### DIY
32
-
33
-
If you're familiar with deploying node applications, the built-in Remix app server is production-ready.
34
-
35
-
Make sure to deploy the output of `remix build`
36
-
37
-
-`build/`
38
-
-`public/build/`
23
+
Forwarding to: localhost:3000 from ingress at: https://935d84664d13.ngrok.app
24
+
Remix App Server started at http://localhost:3000 (http://192.168.2.66:3000)
25
+
```
39
26
40
-
### Using a Template
27
+
#Additional information
41
28
42
-
When you ran `npx create-remix@latest` there were a few choices for hosting. You can run that again to create a new project, then copy over your `app/` folder to the new project that's pre-configured for your target server.
29
+
For more information about Remix see:
43
30
44
-
```sh
45
-
cd ..
46
-
# create a new project, and pick a pre-configured host
This starts your app in development mode, rebuilding assets on file changes.
14
+
15
+
## Deployment
16
+
17
+
First, build your app for production:
18
+
19
+
```sh
20
+
npm run build
21
+
```
22
+
23
+
Then run the app in production mode:
24
+
25
+
```sh
26
+
npm start
27
+
```
28
+
29
+
Now you'll need to pick a host to deploy it to.
30
+
31
+
### DIY
32
+
33
+
If you're familiar with deploying node applications, the built-in Remix app server is production-ready.
34
+
35
+
Make sure to deploy the output of `remix build`
36
+
37
+
-`build/`
38
+
-`public/build/`
39
+
40
+
### Using a Template
41
+
42
+
When you ran `npx create-remix@latest` there were a few choices for hosting. You can run that again to create a new project, then copy over your `app/` folder to the new project that's pre-configured for your target server.
43
+
44
+
```sh
45
+
cd ..
46
+
# create a new project, and pick a pre-configured host
0 commit comments