fix: search button

This commit is contained in:
Jean-Baptiste Pasquier
2021-05-11 12:50:11 +02:00
parent 58e489409a
commit 0f7256a25d
6 changed files with 10 additions and 9 deletions

View File

@ -69,7 +69,7 @@ const options = {
const bundler = new Bundler('./src/index.pug', options);
bundler.addAssetType('html', require.resolve('./assets.js'));
if (process.env.NODE_ENV !== 'production') {
await bundler.serve();
await bundler.serve(process.env.PORT ? process.env.PORT : 1234);
} else {
await bundler.bundle();
}