Hemmelig.app/pre.js
bjarneo 0c86efd56c
refactor: use fastify vite for the dev server (#284)
* refactor: use fastify vite for the server

by doing this we do not need to have local hacks for the routes. No local proxy needed. Everything just works.

* fix: update the dockerfile build path

* fix: update package.json

* fix: fonts path
2024-03-11 13:43:20 +01:00

12 lines
315 B
JavaScript

import config from 'config';
import fs from 'fs';
import template from 'y8';
import html from './html.js';
// This is scripts that has to be run before the
// frontend build process
fs.writeFileSync(
'client/index.html',
template(html, { config: `'${JSON.stringify(config.get('__client_config'))}';` })
);