0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-22 13:18:11 +00:00

first build setup

This commit is contained in:
Víctor Losada Hernández
2026-01-29 16:43:59 +01:00
parent efe67d2092
commit 86f3d5c290
7 changed files with 249 additions and 182 deletions

View File

@@ -0,0 +1,4 @@
import { renderToString } from 'react-dom/server';
import Admin from './admin.jsx';
export default (props) => renderToString(<Admin {...props} />);

View File

@@ -0,0 +1,4 @@
import { renderToString } from 'react-dom/server';
import Homebrew from './homebrew/homebrew.jsx';
export default (props) => renderToString(<Homebrew {...props} />);

View File

@@ -8,7 +8,7 @@ const template = async function(name, title='', props = {}){
});
const ogMetaTags = ogTags.join('\n');
const ssrModule = await import(`../build/${name}/ssr.cjs`);
const ssrModule = await import(`../build/entry-server-${name}/bundle.js`);
return `<!DOCTYPE html>
<html>