~repos /edge-city

#react#js#ssr

git clone https://pyrossh.dev/repos/edge-city.git

edge-city is a next level meta-framework for react that runs only on edge runtimes


79485443 Peter John

2 years ago
new folder structure
jsconfig.json CHANGED
@@ -1,23 +1,5 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "lib": [
4
- "ESNext"
5
- ],
6
- "module": "esnext",
7
- "target": "esnext",
8
- "moduleResolution": "nodenext",
9
- "strict": true,
10
- "downlevelIteration": true,
11
- "skipLibCheck": true,
12
- "jsx": "react",
13
- "jsxFactory": "React.createElement",
14
- "jsxImportSource": "react",
15
- "allowSyntheticDefaultImports": true,
16
- "forceConsistentCasingInFileNames": true,
17
- "allowJs": true,
18
- "types": [
19
- "bun-types" // add Bun global
20
- ],
21
3
  "paths": {
22
4
  "@/*": ["./*"]
23
5
  }
routes/about/page.css ADDED
File without changes
routes/about/page.jsx ADDED
File without changes
api/health.js → routes/health/api.js RENAMED
@@ -1,4 +1,4 @@
1
- export const onGet = (req) => {
1
+ export const onGet = () => {
2
2
  return new Response("ok", {
3
3
  headers: {
4
4
  "Content-Type": "application/json",
pages/index.css → routes/index/page.css RENAMED
File without changes
pages/index.jsx → routes/index/page.jsx RENAMED
File without changes
api/todos/[id]/index.js → routes/todos/[id]/api.js RENAMED
@@ -1,4 +1,4 @@
1
- import tigrisDB from "./db.js";
1
+ import tigrisDB from "./db.js.js";
2
2
 
3
3
  export const todosCollection = tigrisDB.getCollection("todoItems");
4
4
 
api/todos/index.js → routes/todos/api.js RENAMED
@@ -1,4 +1,4 @@
1
- import tigrisDB from "./db.js";
1
+ import tigrisDB from "./db.js.js";
2
2
 
3
3
  export const todosCollection = tigrisDB.getCollection("todoItems");
4
4