Skip to content

Commit b3b01b5

Browse files
committed
chore: fixed typecheck & build commands
1 parent 2df80d0 commit b3b01b5

File tree

9 files changed

+80
-503
lines changed

9 files changed

+80
-503
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@ jobs:
3030
- name: Check (lint and format)
3131
run: pnpm check
3232

33-
build:
33+
typecheck:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- uses: actions/checkout@v4
3737

3838
- name: Setup
3939
uses: ./tooling/github/setup
4040

41-
- name: Build
42-
run: pnpm build
41+
- name: Typecheck
42+
run: pnpm typecheck
4343

44-
typecheck:
44+
build:
4545
runs-on: ubuntu-latest
4646
steps:
4747
- uses: actions/checkout@v4
4848

4949
- name: Setup
5050
uses: ./tooling/github/setup
5151

52-
- name: Typecheck
53-
run: pnpm typecheck
52+
- name: Build
53+
run: pnpm build

apps/localtunnel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"check": "biome check",
88
"clean": "git clean -xdf .cache .next .turbo node_modules tsconfig.tsbuildinfo",
9-
"dev": "pnpm with-env concurrently \"pnpm watch\" \"pnpm tunnel\"",
9+
"dev": "NODE_ENV=development pnpm with-env concurrently \"pnpm watch\" \"pnpm tunnel\"",
1010
"tunnel": "pnpm with-env sh -c 'pnpm lt --port $LOCALTUNNEL_PORT --subdomain $LOCALTUNNEL_SUBDOMAIN'",
1111
"typecheck": "tsc --noEmit",
1212
"watch": "pnpm with-env tsx watch ./src/main.ts",

apps/web/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"build": "pnpm with-env next build",
7+
"build": "NODE_ENV=production pnpm with-env next build",
88
"check": "biome check",
99
"clean": "git clean -xdf .cache .next .turbo node_modules",
10-
"dev": "pnpm with-env next dev --turbopack",
10+
"dev": "NODE_ENV=development pnpm with-env next dev --turbopack",
1111
"shadcn": "pnpm dlx shadcn@latest add && pnpm check --write --unsafe",
12-
"start": "pnpm with-env next start",
12+
"start": "NODE_ENV=production pnpm with-env next start",
1313
"typecheck": "tsc --noEmit",
1414
"with-env": "dotenv -e ../../.env --"
1515
},
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import dynamic from "next/dynamic";
2+
3+
export const DynamicNotFoundEditor = dynamic(
4+
() => import("./not-found-editor").then((mod) => mod.NotFoundEditor),
5+
{
6+
ssr: false,
7+
},
8+
);
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
"use client";
2+
3+
import { BlockNoteView } from "@blocknote/mantine";
4+
import { useCreateBlockNote } from "@blocknote/react";
5+
6+
export function NotFoundEditor() {
7+
// Creates a new editor instance.
8+
const editor = useCreateBlockNote({
9+
initialContent: [
10+
{
11+
content: "Journl #404",
12+
type: "heading",
13+
},
14+
{
15+
content: "Page not found.",
16+
type: "paragraph",
17+
},
18+
{
19+
content: "The path was linked, but the note was not.",
20+
type: "bulletListItem",
21+
},
22+
{
23+
content: "Will investigate later... or probably forget.",
24+
type: "bulletListItem",
25+
},
26+
{
27+
children: [
28+
{
29+
content: "window.location.href = '/';",
30+
props: { language: "json" },
31+
type: "codeBlock",
32+
},
33+
],
34+
content: "This should help users find their way back...",
35+
type: "bulletListItem",
36+
},
37+
{
38+
type: "paragraph",
39+
},
40+
],
41+
});
42+
43+
return <BlockNoteView autoFocus theme="light" editor={editor} />;
44+
}

0 commit comments

Comments
 (0)