From 2384b30a244c7d6477e54de5385fe7f1cc62d43a Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Fri, 8 Oct 2021 23:39:37 +0200 Subject: feat(preview): proper file preview with api routing --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 0bbb24c..c19e263 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "private": true, "scripts": { "dev": "next dev", - "build": "next build && next export", + "build": "next build", + "export": "next export", "start": "next start", "prettier": "prettier -w .", "lint": "tsc --noEmit && next lint && eslint \"./**/*.{ts,tsx,js}\" \"./**/.*.{ts,tsx,js}\" --fix" @@ -27,6 +28,7 @@ "next-pwa": "^5.2.24", "orgast-util-to-string": "^0.3.1", "orgast-util-visit-ids": "^0.3.1", + "path": "^0.12.7", "react": "17.0.2", "react-custom-scrollbars-2": "^4.4.0", "react-dom": "17.0.2", @@ -39,6 +41,7 @@ "rehype-katex": "^5.0.0", "rehype-react": "^6.2.1", "three-spritetext": "^1.6.2", + "through": "^2.3.8", "to-vfile": "^6.1.0", "unified": "^9.2.2", "uniorg": "^0.4.0", -- cgit v1.2.3