mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-09-18 15:21:33 +00:00
Compare commits
4 Commits
v1.10.0
...
233d1c1a55
Author | SHA1 | Date | |
---|---|---|---|
|
233d1c1a55 | ||
|
752ed7dd3c | ||
|
45df9dc5bf | ||
|
06db95d7c0 |
@@ -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
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
@@ -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 },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user