Skip to content

Commit 6af79a8

Browse files
authored
Update contributing.md
1 parent a960106 commit 6af79a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Or just run `script/deploy`, which runs these commands in the same order.
3131
Now's [path alias] feature allows us to serve multiple apps under a single domain (in this case, `primer.style`). As this site grows, we will split larger pages off into separate apps and manage their aliases in this repo's `rules.json`, then re-run `now alias -r rules.json` whenever those mappings change.
3232

3333
#### Path alias tips and tricks
34-
Because of the way that Now's path alias feature works, separate apps need to be configured to serve all of their URLs under the same path as they're aliased to here. In other words, an app aliased to `/alias/**` will need to serve all of its content from `/alias/` rather than `/`. For Next.js apps, this means placing all of your content in `pages/<alias>/` so that they'll be served from `/<alias>/`. Serving static assets is trickier; you can see how we did it for [the components site][components] in [this pull request](https://github.com/primer/primer-react/pull/238).
34+
Because of the way that Now's path alias feature works, separate apps need to be configured to serve all of their URLs under the same path as they're aliased to here. In other words, an app aliased to `/alias/**` will need to serve all of its content from `/alias/` rather than `/`. For Next.js apps, this means nesting all of your page content in `pages/<alias>/`. Serving static assets is trickier; you can see how we did it for [the components site][components] in [this pull request](https://github.com/primer/primer-react/pull/238).
3535

3636
[Now]: https://zeit.co/now
3737
[Now GitHub app]: https://github.com/apps/now

0 commit comments

Comments
 (0)