diff --git a/devinstall.mjs b/devinstall.mjs index 3756684..9827d67 100644 --- a/devinstall.mjs +++ b/devinstall.mjs @@ -4,7 +4,7 @@ const { name: example } = path.parse(process.cwd()) const exRoot = path.resolve(__dirname, 'starters', example) -const command = process.argv.slice(5) +const command = process.argv.slice(process.argv.findIndex(_ => _ === '--') + 1) if (!fs.existsSync(exRoot)) { console.log('Must be called from a directory under starters/.') diff --git a/packages/fastify-dx-react/index.js b/packages/fastify-dx-react/index.js index 3be8f71..804b723 100644 --- a/packages/fastify-dx-react/index.js +++ b/packages/fastify-dx-react/index.js @@ -70,6 +70,7 @@ export function createHtmlFunction (source, scope, config) { head: headTemplate({ ...context, head }), footer: () => footerTemplate({ ...context, + hydration: '', // Decide whether or not to include the hydration script ...!context.serverOnly && { hydration: (