Skip to content

Commit 7dd1733

Browse files
committed
update docs
1 parent a35cb67 commit 7dd1733

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/server/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,11 @@ export async function createServer(routeConfig?: RouteConfig) {
123123
options: {
124124
cacheName: 'session',
125125
nunjucks: {
126-
paths: [join(findPackageRoot(), 'src/server/devserver')] // this ia development server so we don't need any, but a consumer would provide their own paths
126+
paths: [join(findPackageRoot(), 'src/server/devserver')] // custom layout to make it really clear this is not the same as the runner
127127
},
128-
viewContext: () => ({ baseLayoutPath: 'dxt-devtool-baselayout.html' }) // layout.html comes from govuk-frontend but could be defined anywhere in `paths`
128+
viewContext: () => ({
129+
baseLayoutPath: 'dxt-devtool-baselayout.html' // from plugin.options.nunjucks.paths
130+
})
129131
}
130132
})
131133

0 commit comments

Comments
 (0)