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
Copy file name to clipboardExpand all lines: src/server/index.ts
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -123,9 +123,11 @@ export async function createServer(routeConfig?: RouteConfig) {
123
123
options: {
124
124
cacheName: 'session',
125
125
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
127
127
},
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
0 commit comments