docs: fix docker command (#972)

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
This commit is contained in:
STARTRACEX
2023-01-07 19:25:24 +09:00
committed by GitHub
co-authored by Yoshiya Hinosawa
parent 9cd786be54
commit 8802336d09
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ $ docker build --build-arg GIT_REVISION=$(git rev-parse HEAD) -t my-fresh-app .
Then run your Docker container: Then run your Docker container:
```sh ```sh
$ docker run -t -i -p 80:8000 fresh-app $ docker run -t -i -p 80:8000 my-fresh-app
``` ```
To deploy to a cloud provider, push it to a container registry and follow their To deploy to a cloud provider, push it to a container registry and follow their
+6 -6
View File
@@ -151,12 +151,12 @@ export class ServerContext {
path.endsWith("/_middleware.ts") || path.endsWith("/_middleware.jsx") || path.endsWith("/_middleware.ts") || path.endsWith("/_middleware.jsx") ||
path.endsWith("/_middleware.js"); path.endsWith("/_middleware.js");
if (!path.startsWith("/_") && !isMiddleware) { if (!path.startsWith("/_") && !isMiddleware) {
const { default: component, config } = (module as RouteModule); const { default: component, config } = module as RouteModule;
let pattern = pathToPattern(baseRoute); let pattern = pathToPattern(baseRoute);
if (config?.routeOverride) { if (config?.routeOverride) {
pattern = String(config.routeOverride); pattern = String(config.routeOverride);
} }
let { handler } = (module as RouteModule); let { handler } = module as RouteModule;
handler ??= {}; handler ??= {};
if ( if (
component && component &&
@@ -187,8 +187,8 @@ export class ServerContext {
path === "/_404.tsx" || path === "/_404.ts" || path === "/_404.tsx" || path === "/_404.ts" ||
path === "/_404.jsx" || path === "/_404.js" path === "/_404.jsx" || path === "/_404.js"
) { ) {
const { default: component, config } = (module as UnknownPageModule); const { default: component, config } = module as UnknownPageModule;
let { handler } = (module as UnknownPageModule); let { handler } = module as UnknownPageModule;
if (component && handler === undefined) { if (component && handler === undefined) {
handler = (_req, { render }) => render(); handler = (_req, { render }) => render();
} }
@@ -205,8 +205,8 @@ export class ServerContext {
path === "/_500.tsx" || path === "/_500.ts" || path === "/_500.tsx" || path === "/_500.ts" ||
path === "/_500.jsx" || path === "/_500.js" path === "/_500.jsx" || path === "/_500.js"
) { ) {
const { default: component, config } = (module as ErrorPageModule); const { default: component, config } = module as ErrorPageModule;
let { handler } = (module as ErrorPageModule); let { handler } = module as ErrorPageModule;
if (component && handler === undefined) { if (component && handler === undefined) {
handler = (_req, { render }) => render(); handler = (_req, { render }) => render();
} }