feat(app): lint and beautify
This commit is contained in:
parent
db7407bfac
commit
2c5ca94b3c
|
@ -10,27 +10,27 @@ This guide will show you how to make Perplexica available over a network. Follow
|
||||||
|
|
||||||
3. Stop and remove the existing Perplexica containers and images:
|
3. Stop and remove the existing Perplexica containers and images:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose down --rmi all
|
docker compose down --rmi all
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Open the `docker-compose.yaml` file in a text editor like Notepad++
|
4. Open the `docker-compose.yaml` file in a text editor like Notepad++
|
||||||
|
|
||||||
5. Replace `127.0.0.1` with the IP address of the server Perplexica is running on in these two lines:
|
5. Replace `127.0.0.1` with the IP address of the server Perplexica is running on in these two lines:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
args:
|
args:
|
||||||
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
|
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
|
||||||
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
|
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Save and close the `docker-compose.yaml` file
|
6. Save and close the `docker-compose.yaml` file
|
||||||
|
|
||||||
7. Rebuild and restart the Perplexica container:
|
7. Rebuild and restart the Perplexica container:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
```
|
```
|
||||||
|
|
||||||
## macOS
|
## macOS
|
||||||
|
|
||||||
|
@ -38,37 +38,37 @@ This guide will show you how to make Perplexica available over a network. Follow
|
||||||
|
|
||||||
2. Navigate to the directory with the `docker-compose.yaml` file:
|
2. Navigate to the directory with the `docker-compose.yaml` file:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /path/to/docker-compose.yaml
|
cd /path/to/docker-compose.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Stop and remove existing containers and images:
|
3. Stop and remove existing containers and images:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose down --rmi all
|
docker compose down --rmi all
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Open `docker-compose.yaml` in a text editor like Sublime Text:
|
4. Open `docker-compose.yaml` in a text editor like Sublime Text:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nano docker-compose.yaml
|
nano docker-compose.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Replace `127.0.0.1` with the server IP in these lines:
|
5. Replace `127.0.0.1` with the server IP in these lines:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
args:
|
args:
|
||||||
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
|
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
|
||||||
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
|
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Save and exit the editor
|
6. Save and exit the editor
|
||||||
|
|
||||||
7. Rebuild and restart Perplexica:
|
7. Rebuild and restart Perplexica:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
```
|
```
|
||||||
|
|
||||||
## Linux
|
## Linux
|
||||||
|
|
||||||
|
@ -76,34 +76,34 @@ This guide will show you how to make Perplexica available over a network. Follow
|
||||||
|
|
||||||
2. Navigate to the `docker-compose.yaml` directory:
|
2. Navigate to the `docker-compose.yaml` directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /path/to/docker-compose.yaml
|
cd /path/to/docker-compose.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Stop and remove containers and images:
|
3. Stop and remove containers and images:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose down --rmi all
|
docker compose down --rmi all
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Edit `docker-compose.yaml`:
|
4. Edit `docker-compose.yaml`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nano docker-compose.yaml
|
nano docker-compose.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Replace `127.0.0.1` with the server IP:
|
5. Replace `127.0.0.1` with the server IP:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
args:
|
args:
|
||||||
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
|
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
|
||||||
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
|
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Save and exit the editor
|
6. Save and exit the editor
|
||||||
|
|
||||||
7. Rebuild and restart Perplexica:
|
7. Rebuild and restart Perplexica:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
```
|
```
|
||||||
|
|
|
@ -54,7 +54,7 @@ router.get('/', async (_, res) => {
|
||||||
config['anthropicApiKey'] = getAnthropicApiKey();
|
config['anthropicApiKey'] = getAnthropicApiKey();
|
||||||
config['groqApiKey'] = getGroqApiKey();
|
config['groqApiKey'] = getGroqApiKey();
|
||||||
config['geminiApiKey'] = getGeminiApiKey();
|
config['geminiApiKey'] = getGeminiApiKey();
|
||||||
|
|
||||||
res.status(200).json(config);
|
res.status(200).json(config);
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
res.status(500).json({ message: 'An error has occurred.' });
|
res.status(500).json({ message: 'An error has occurred.' });
|
||||||
|
|
Loading…
Reference in New Issue