Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[build]
base = "website"
command = "npm run build"
publish = "dist"

[build.environment]
NODE_VERSION = "20"

[[headers]]
for = "/*"
[headers.values]
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
Permissions-Policy = "camera=(), microphone=(), geolocation=(), interest-cohort=()"
Content-Security-Policy = "default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self'; font-src 'self'; connect-src 'self'; frame-ancestors 'none'; base-uri 'self'; form-action 'self'"
X-Frame-Options = "DENY"
8 changes: 8 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules/
dist/
.astro/
.netlify/
.env
.env.*
!.env.example
npm-debug.log*
42 changes: 42 additions & 0 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SkillRewind website

The official public landing page for [SkillRewind](https://github.com/alanqoudif/SkillRewind), built with
[Astro](https://astro.build) + TypeScript + Tailwind CSS. This directory is fully independent of the Python
project at the repository root — it has its own `package.json`, lockfile, and build.

## Local development

```bash
cd website
npm ci
npm run dev
```

Open `http://localhost:4321`.

## Build

```bash
npm run build # outputs to website/dist/
npm run preview # serve the built output locally
npm run check # astro check (TypeScript/template diagnostics)
npm run test:claims # scan built HTML for prohibited overreach phrases
```

## Environment variables

| Variable | Purpose | Default |
|---|---|---|
| `PUBLIC_SITE_URL` | Canonical site origin used for `<link rel="canonical">`, Open Graph/Twitter meta, and the sitemap. | `https://skillrewind.dev` |

## Deploying to Netlify

1. In Netlify, "Add new site" → "Import an existing project" → connect the `alanqoudif/SkillRewind` GitHub repo.
2. **Base directory:** `website`
3. **Build command:** `npm run build`
4. **Publish directory:** `dist` (relative to the base directory — Netlify will show `website/dist`)
5. Add an environment variable `PUBLIC_SITE_URL` set to the site's real production URL.
6. Deploy. The root-level `netlify.toml` already encodes the base/command/publish settings and security headers,
so the UI fields above should auto-populate from it — confirm they match before the first deploy.

Do not deploy from this workspace automatically; deployment is a manual step for whoever owns the Netlify site.
7 changes: 7 additions & 0 deletions website/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';

export default defineConfig({
site: process.env.PUBLIC_SITE_URL || 'https://skillrewind.dev',
integrations: [tailwind({ applyBaseStyles: false })],
});
Loading
Loading