Skip to content

Commit 3fdeea4

Browse files
committed
refactor: migrate to Nitro 3 and remove authentication
Major refactoring to upgrade the codebase and simplify architecture: - Upgrade from Nitro 2.x to Nitro 3.0 beta - Remove better-auth integration and all authentication-related code - Refactor font service with provider-based architecture (Google, FontShare, Fontsource, Bunny, Google Icons) - Add new API endpoints: CSS generation, favicon extraction, OG images, screenshots, webfonts - Remove unused utilities: image processing, storage adapters, rate limiting, memory cache - Simplify configuration: remove database and OAuth requirements - Replace @funish/basis with vite-plus for build tooling - Add Dockerfile for containerized deployment - Update project documentation to reflect new architecture - Move from nitropack to nitro package - Update all dependencies to latest versions BREAKING CHANGE: Authentication functionality has been completely removed. All endpoints are now publicly accessible without authentication.
1 parent 0ec6d21 commit 3fdeea4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+5134
-13977
lines changed

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Image Proxy Security
2+
# Optional: Comma-separated list of allowed domains for image proxy
3+
# If not set, all domains are allowed (use with caution in production)
4+
ALLOWED_DOMAINS=example.com,cdn.example.com
5+
6+
# Caching
7+
# Optional: Redis connection URL for distributed caching
8+
# If not set, uses in-memory caching (suitable for development)
9+
REDIS_URL=redis://localhost:6379
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Build and Push Docker Image
22

33
on:
44
push:
5-
branches: [main]
5+
branches: ["main"]
66
tags: ["v*"]
77
pull_request:
8-
branches: [main]
8+
branches: ["main"]
99
workflow_dispatch:
1010

1111
concurrency:
@@ -14,7 +14,6 @@ concurrency:
1414

1515
env:
1616
IMAGE_NAME: bysages/lens
17-
NIXPACKS_NODE_VERSION: 22
1817

1918
jobs:
2019
build:
@@ -34,6 +33,9 @@ jobs:
3433
username: ${{ secrets.DOCKER_USERNAME }}
3534
password: ${{ secrets.DOCKER_PASSWORD }}
3635

36+
- name: Set up Docker Buildx
37+
uses: docker/setup-buildx-action@v3
38+
3739
- name: Extract metadata for tags
3840
id: meta
3941
run: |
@@ -51,11 +53,10 @@ jobs:
5153
fi
5254
5355
- name: Build and push Docker images
54-
uses: iloveitaly/github-action-nixpacks@main
56+
uses: docker/build-push-action@v6
5557
with:
5658
push: ${{ github.event_name != 'pull_request' }}
57-
cache: true
58-
cache_tag: ${{ env.IMAGE_NAME }}:cache
59+
cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:cache
60+
cache-to: type=registry,ref=${{ env.IMAGE_NAME }}:cache,mode=max
5961
tags: ${{ steps.meta.outputs.tags }}
60-
env: |
61-
NIXPACKS_NODE_VERSION=${{ env.NIXPACKS_NODE_VERSION }}
62+
file: ./Dockerfile

.vite-hooks/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vp staged

0 commit comments

Comments
 (0)