Skip to content

Commit

Permalink
docs: mention that src/ isn't ignored by config inheritance (#1941)
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Oct 31, 2024
1 parent 440d095 commit b63f988
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/pages/filesystem-routing/+Page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ contact/+Page.js /contact
pages/pages/src/(some-dir)/src/index/pages/about/+Page.js /about
```

This enables you to set up a <Link href='#domain-driven'>domain-driven file structure</Link>.

Instead of `(someDir)` you can also use the <Link href="/filesystemRoutingRoot">`filesystemRoutingRoot` setting</Link>.
But they aren't ignored by <Link href="/config#inheritance">config inheritance</Link>:
```yaml
pages/about/+Page.js
# This +config.js file doesn't apply to pages/about/+Page.js
src/pages/+config.js
```



Expand Down
2 changes: 2 additions & 0 deletions docs/pages/routing/+Page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ src/pages/about/+Page.js /about

> The directory `src/` is ignored by Filesystem Routing.
> The directory `src/` <Link href="/filesystem-routing#ignored-directories">isn't ignored by config inheritance</Link>: make sure to define *all* your `+` files inside `src/`.

### Domain-driven file structure

Expand Down

0 comments on commit b63f988

Please sign in to comment.