Compare commits

..

4 Commits

Author SHA1 Message Date
Ikko Eltociear Ashimine
233d1c1a55 Merge 752ed7dd3c into 45df9dc5bf 2025-03-24 00:11:55 +09:00
Ikko Eltociear Ashimine
752ed7dd3c refactor(app): update route.ts
ocurred -> occurred
2025-03-24 00:11:43 +09:00
ItzCrazyKns
45df9dc5bf feat(readme): update networking guide 2025-03-21 11:27:12 +05:30
ItzCrazyKns
06db95d7c0 feat(dockerfile): fix onnx issues 2025-03-21 11:25:28 +05:30
3 changed files with 7 additions and 7 deletions

View File

@@ -153,7 +153,7 @@ For more details, check out the full documentation [here](https://github.com/Itz
## Expose Perplexica to network ## Expose Perplexica to network
You can access Perplexica over your home network by following our networking guide [here](https://github.com/ItzCrazyKns/Perplexica/blob/master/docs/installation/NETWORKING.md). Perplexica runs on Next.js and handles all API requests. It works right away on the same network and stays accessible even with port forwarding.
## One-Click Deployment ## One-Click Deployment

View File

@@ -1,4 +1,4 @@
FROM node:20.18.0-alpine AS builder FROM node:20.18.0-slim AS builder
WORKDIR /home/perplexica WORKDIR /home/perplexica
@@ -12,7 +12,7 @@ COPY public ./public
RUN mkdir -p /home/perplexica/data RUN mkdir -p /home/perplexica/data
RUN yarn build RUN yarn build
FROM node:20.18.0-alpine FROM node:20.18.0-slim
WORKDIR /home/perplexica WORKDIR /home/perplexica

View File

@@ -59,9 +59,9 @@ export const GET = async (req: Request) => {
return Response.json({ ...config }, { status: 200 }); return Response.json({ ...config }, { status: 200 });
} catch (err) { } catch (err) {
console.error('An error ocurred while getting config:', err); console.error('An error occurred while getting config:', err);
return Response.json( return Response.json(
{ message: 'An error ocurred while getting config' }, { message: 'An error occurred while getting config' },
{ status: 500 }, { status: 500 },
); );
} }
@@ -100,9 +100,9 @@ export const POST = async (req: Request) => {
return Response.json({ message: 'Config updated' }, { status: 200 }); return Response.json({ message: 'Config updated' }, { status: 200 });
} catch (err) { } catch (err) {
console.error('An error ocurred while updating config:', err); console.error('An error occurred while updating config:', err);
return Response.json( return Response.json(
{ message: 'An error ocurred while updating config' }, { message: 'An error occurred while updating config' },
{ status: 500 }, { status: 500 },
); );
} }