Skip to content

Commit 82bda3f

Browse files
authored
web fix images hosts, fix web frontend lints (#2688)
* Add vecteezy.com to image host * Fix lints on web
1 parent 948266d commit 82bda3f

File tree

39 files changed

+304
-168
lines changed

39 files changed

+304
-168
lines changed

web/frontend/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A Next.js web application for the Omi wearable device by Based Hardware. This fr
1919

2020
### Prerequisites
2121

22-
- Node.js 18+
22+
- Node.js 18+
2323
- npm, yarn, or pnpm package manager
2424
- Firebase project setup
2525
- Redis instance (for caching)
@@ -28,12 +28,14 @@ A Next.js web application for the Omi wearable device by Based Hardware. This fr
2828
### Installation
2929

3030
1. **Clone the repository and navigate to the frontend directory**
31+
3132
```bash
3233
git clone <repository-url>
3334
cd omi/web/frontend
3435
```
3536

3637
2. **Install dependencies**
38+
3739
```bash
3840
npm install
3941
# or
@@ -43,12 +45,14 @@ A Next.js web application for the Omi wearable device by Based Hardware. This fr
4345
```
4446

4547
3. **Set up environment variables**
48+
4649
```bash
4750
cp .env.template .env.local
4851
# Edit .env.local with your actual values
4952
```
5053

5154
4. **Start the development server**
55+
5256
```bash
5357
npm run dev
5458
# or
@@ -129,6 +133,7 @@ src/
129133
## API Integration
130134

131135
The frontend connects to the Omi backend API for:
136+
132137
- User authentication and management
133138
- Memory data synchronization
134139
- App marketplace functionality

web/frontend/cache-handler.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Custom cache handler to bypass 2MB fetch cache limit
22
const FileSystemCache = require('next/dist/server/lib/incremental-cache/file-system-cache.js');
33

4-
module.exports = FileSystemCache;
4+
module.exports = FileSystemCache;

web/frontend/next.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ const nextConfig = {
5454
protocol: 'https',
5555
hostname: 'abs.twimg.com',
5656
},
57+
{
58+
protocol: 'https',
59+
hostname: 'static.vecteezy.com',
60+
},
5761
],
5862
},
5963
async headers() {

0 commit comments

Comments
 (0)