Skip to content

Commit 47d2f00

Browse files
authored
Merge pull request #114 from monteslu/headless
Headless
2 parents 2601e58 + d58f9fc commit 47d2f00

File tree

129 files changed

+6247
-684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+6247
-684
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ lerna-debug.log*
99

1010
node_modules
1111
dist
12+
dist-server
1213
dist-ssr
1314
*.local
1415

16+
# Server runtime storage
17+
.pagenodes
18+
1519
# Editor directories and files
1620
.vscode/*
1721
!.vscode/extensions.json

eslint.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import reactRefresh from 'eslint-plugin-react-refresh'
55
import { defineConfig, globalIgnores } from 'eslint/config'
66

77
export default defineConfig([
8-
globalIgnores(['dist', 'public/workers', 'public/@mediapipe']),
8+
globalIgnores(['dist', 'dist-server', 'public/workers', 'public/@mediapipe']),
99
{
1010
files: ['**/*.{js,jsx}'],
1111
extends: [
@@ -28,6 +28,13 @@ export default defineConfig([
2828
'react-hooks/exhaustive-deps': 'off',
2929
},
3030
},
31+
// Server files run in Node.js
32+
{
33+
files: ['src/server/**/*.js'],
34+
languageOptions: {
35+
globals: globals.nodeBuiltin,
36+
},
37+
},
3138
// Node definitions use renderEditor pattern that calls hooks in render functions
3239
// This is a valid pattern for render props but ESLint doesn't recognize it
3340
{

index-server.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>PageNodes</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main-server.jsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)