From d97ad7dbfec12d8c831f77352bf01695b9f038c2 Mon Sep 17 00:00:00 2001 From: Kentai Radiquum Date: Mon, 13 May 2024 22:20:08 +0500 Subject: [PATCH] feat(deploy): allow deploying on deta.space - **BREAKING CHANGE**: Api url now /api/v1 \n **Fix**: Frontend build. \n **Fix**: errors about unknown styles BREAKING CHANGE: --- .gitignore | 4 + .spaceignore | 57 +++++++ README.md | 8 +- Spacefile | 14 ++ TODO.md | 2 + backend/main.py | 22 +-- docker-compose.dev.yml | 9 +- docker/backend.dev.Dockerfile | 2 +- frontend/app/App.jsx | 6 +- frontend/app/api/config.js | 2 +- frontend/app/bookmarks/page.js | 115 +------------- .../NavigationRail/NavigationRail.jsx | 8 +- .../app/components/Pages/BookmarksPage.jsx | 117 ++++++++++++++ frontend/app/components/Pages/IndexPage.jsx | 107 +++++++++++++ frontend/app/components/Pages/SearchPage.jsx | 150 ++++++++++++++++++ frontend/app/page.js | 107 +------------ frontend/app/search/page.js | 147 +---------------- frontend/next.config.mjs | 1 + frontend/package-lock.json | 38 +---- 19 files changed, 504 insertions(+), 412 deletions(-) create mode 100644 .spaceignore create mode 100644 Spacefile create mode 100644 frontend/app/components/Pages/BookmarksPage.jsx create mode 100644 frontend/app/components/Pages/IndexPage.jsx create mode 100644 frontend/app/components/Pages/SearchPage.jsx diff --git a/.gitignore b/.gitignore index 220e305..1199e56 100644 --- a/.gitignore +++ b/.gitignore @@ -7,8 +7,12 @@ venv .VSCode *.code-workspace +# DetaSpace +.space + # NextJS ## dependencies +standalone node_modules .pnp .pnp.js diff --git a/.spaceignore b/.spaceignore new file mode 100644 index 0000000..38b511b --- /dev/null +++ b/.spaceignore @@ -0,0 +1,57 @@ +# Python +__pycache__ +venv +.mypy_cache + +# VSCode +.VSCode +*.code-workspace + +# NextJS +## dependencies +node_modules +.pnp +.pnp.js +.yarn/install-state.gz + +## testing +coverage + +## next.js +.next +out + +## production +build + +## misc +.DS_Store +*.pem + +## debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +## local env files +.env*.local + +## vercel +.vercel + +## typescript +*.tsbuildinfo +next-env.d.ts + +# traefik +traefik + +# OtherFiles +CHANGELOG.md +docker* +LICENSE +README.md +TODO.md +.cz.yaml +.pre-commit-config.yaml +docs diff --git a/README.md b/README.md index a726c6d..594fe17 100644 --- a/README.md +++ b/README.md @@ -118,13 +118,13 @@ To access the docker logs you can use `docker compose -f docker-compose.dev.yml ## Deployment -### Docker Deployment + -### Deta Space +