Skip to content

Commit 15c579d

Browse files
committed
fix prod build and remove outdated start instructions
1 parent 418b2c4 commit 15c579d

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,3 @@ To build and start in prod mode, use:
6262
#### Container approach
6363

6464
To run dev mode in containerd instead, run `nerdctl compose -f compose.yaml up`. This will mount your current directory as a volume in the container which means any changes will make nextjs re-compile pages. This also means that anything in the `dotenv` files are picked up, including the PVWS URL.
65-
66-
### Building
67-
68-
For a production build, run `npm run build`. To start this build natively, use `npm run start`.

app/instrument/page.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
"use client"
1+
"use client";
22
import { Inter } from "next/font/google";
33
const inter = Inter({ subsets: ["latin"] });
44
import React, { Suspense } from "react";
5-
import {InstrumentData} from "@/app/components/InstrumentData";
6-
import {useSearchParams} from "next/navigation";
5+
import { InstrumentData } from "@/app/components/InstrumentData";
6+
import { useSearchParams } from "next/navigation";
77

8-
export default function Instrument() {
8+
function GetInstrumentData() {
99
const searchParams = useSearchParams();
1010
const instrument = searchParams.get("name")!;
11+
return <InstrumentData instrumentName={instrument} />;
12+
}
1113

14+
export default function Instrument() {
1215
return (
1316
<main
1417
className={`flex min-h-screen bg-white flex-col items-center justify-start ${inter.className}`}
1518
>
1619
<Suspense>
17-
<InstrumentData instrumentName={instrument} />;
20+
<GetInstrumentData />;
1821
</Suspense>
1922
</main>
2023
);

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"scripts": {
88
"dev": "next dev",
99
"build": "next build",
10-
"start": "next start",
1110
"lint": "eslint ./",
1211
"test": "jest",
1312
"format": "prettier --write \"**/*.{ts,tsx,md,js,json,yml,yaml}\"",

0 commit comments

Comments
 (0)