alpha wip
This commit is contained in:
@@ -4,7 +4,7 @@ Pre-launch landing page for GridPilot with email signup functionality.
|
||||
|
||||
## Features
|
||||
|
||||
- **Mode Switching**: Toggle between pre-launch (landing page only) and post-launch (full platform) modes
|
||||
- **Mode Switching**: Toggle between pre-launch (landing page only) and alpha (full platform) modes
|
||||
- **Email Capture**: Collect email signups with validation and rate limiting
|
||||
- **Production Ready**: Configured for Vercel deployment with KV storage
|
||||
|
||||
@@ -34,8 +34,7 @@ cp .env.example .env.local
|
||||
|
||||
4. Configure environment variables in `.env.local`:
|
||||
```bash
|
||||
# Application Mode (pre-launch or post-launch)
|
||||
GRIDPILOT_MODE=pre-launch
|
||||
# Application Mode (pre-launch or alpha)
|
||||
NEXT_PUBLIC_GRIDPILOT_MODE=pre-launch
|
||||
|
||||
# Vercel KV (required for email signups)
|
||||
@@ -59,8 +58,7 @@ Visit `http://localhost:3000` to see the landing page.
|
||||
|
||||
| Variable | Description | Example |
|
||||
|----------|-------------|---------|
|
||||
| `GRIDPILOT_MODE` | Application mode | `pre-launch` or `post-launch` |
|
||||
| `NEXT_PUBLIC_GRIDPILOT_MODE` | Client-side mode detection | Must match `GRIDPILOT_MODE` |
|
||||
| `NEXT_PUBLIC_GRIDPILOT_MODE` | Application mode (server & client) | `pre-launch` or `alpha` |
|
||||
| `KV_REST_API_URL` | Vercel KV REST API endpoint | From Vercel Dashboard |
|
||||
| `KV_REST_API_TOKEN` | Vercel KV authentication token | From Vercel Dashboard |
|
||||
| `NEXT_PUBLIC_SITE_URL` | Public site URL | `https://gridpilot.com` |
|
||||
@@ -85,7 +83,6 @@ The application supports two modes:
|
||||
|
||||
To activate:
|
||||
```bash
|
||||
GRIDPILOT_MODE=pre-launch
|
||||
NEXT_PUBLIC_GRIDPILOT_MODE=pre-launch
|
||||
```
|
||||
|
||||
@@ -97,8 +94,7 @@ NEXT_PUBLIC_GRIDPILOT_MODE=pre-launch
|
||||
|
||||
To activate:
|
||||
```bash
|
||||
GRIDPILOT_MODE=post-launch
|
||||
NEXT_PUBLIC_GRIDPILOT_MODE=post-launch
|
||||
NEXT_PUBLIC_GRIDPILOT_MODE=alpha
|
||||
```
|
||||
|
||||
## Email Signup API
|
||||
@@ -179,7 +175,6 @@ console.log(signups);
|
||||
|
||||
**Production:**
|
||||
```
|
||||
GRIDPILOT_MODE=pre-launch
|
||||
NEXT_PUBLIC_GRIDPILOT_MODE=pre-launch
|
||||
KV_REST_API_URL=<your_vercel_kv_url>
|
||||
KV_REST_API_TOKEN=<your_vercel_kv_token>
|
||||
@@ -198,7 +193,7 @@ console.log(signups);
|
||||
When ready to launch the full platform:
|
||||
|
||||
1. Go to Vercel Dashboard → Project Settings → Environment Variables
|
||||
2. Update `GRIDPILOT_MODE` and `NEXT_PUBLIC_GRIDPILOT_MODE` to `post-launch`
|
||||
2. Update `NEXT_PUBLIC_GRIDPILOT_MODE` to `alpha`
|
||||
3. Redeploy the application (automatic if you save changes)
|
||||
|
||||
### Custom Domain Setup
|
||||
@@ -263,10 +258,10 @@ Submit the same email 5 times within an hour. The 6th submission should return a
|
||||
|
||||
### Mode Switching Not Working
|
||||
|
||||
**Issue**: Routes still show 404 in post-launch mode
|
||||
**Issue**: Routes still show 404 in alpha mode
|
||||
|
||||
**Solution**:
|
||||
1. Ensure `GRIDPILOT_MODE` and `NEXT_PUBLIC_GRIDPILOT_MODE` are both set to `post-launch`
|
||||
**Solution**:
|
||||
1. Ensure `NEXT_PUBLIC_GRIDPILOT_MODE` is set to `alpha`
|
||||
2. Restart the development server or redeploy to Vercel
|
||||
3. Clear browser cache
|
||||
|
||||
|
||||
Reference in New Issue
Block a user