Skip to content

edschoolpk-web/edinn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

131 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Storage Configuration

The project uses an environment-agnostic storage adapter (lib/storage.ts) that supports Vercel Blob, Local Storage (VPS/Shared Hosting), and a Dev Fallback.

Priority Logic

  1. Vercel Blob: Used if BLOB_READ_WRITE_TOKEN is set.
  2. Local Storage (VPS): Used if LOCAL_UPLOADS_DIR (absolute path) is set.
  3. Dev Fallback: Defaults to public/ folder only in development mode.
  4. Error: Throws an error in production if no storage is configured.

Environment Variables

Add these to your .env.local:

# Optional: For Vercel Blob
BLOB_READ_WRITE_TOKEN=your_token_here

# Optional: For VPS / Shared Hosting
LOCAL_UPLOADS_DIR=/var/www/edinn/uploads
PUBLIC_UPLOADS_BASE_URL=https://edinnschool.com/uploads

Nginx Configuration (VPS)

If using LOCAL_UPLOADS_DIR on a VPS, map the public URL path to the directory:

location /uploads/ {
    alias /var/www/edinn/uploads/;
    expires 30d;
    add_header Cache-Control "public, no-transform";
}

About

Engineers & Doctors School

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors