mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-30 22:32:47 -07:00
feat: scaffold build script
This commit is contained in:
@@ -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(),
|
||||
""
|
||||
|
||||
Reference in New Issue
Block a user