feat: scaffold build script

This commit is contained in:
Valerio Ageno
2024-05-23 22:32:43 +02:00
parent 322908145e
commit 5a30f36eb0
5 changed files with 54 additions and 2 deletions
+2
View File
@@ -3,9 +3,11 @@ use std::cell::RefCell;
use std::fs::read_to_string;
pub struct Js;
impl Js {
thread_local! {
pub static SSR: RefCell<Ssr<'static, 'static>> = RefCell::new(
// TODO: handle here dev/prod source
Ssr::from(
read_to_string("./.tuono/server/dev-server.js").unwrap(),
""