Skip to content

Migrate from Netlify

This guide helps you migrate your site from Netlify to Quant. We’ll cover build configuration, redirects, forms, environment variables, and DNS changes.

Netlify FeatureQuant Equivalent
Continuous deploymentGitHub Actions
Build settingsGitHub Actions workflow
Redirects (_redirects)Page Rules or CLI
Environment variablesGitHub Secrets + workflow
FormsQuant Forms
FunctionsEdge Functions
Split testingMultiple projects + DNS
AnalyticsThird-party or edge functions
  1. Sign up at dashboard.quantcdn.io
  2. Create a new Static project
  3. Note your organisation ID and project name
  4. Copy your project token from Integrations

Replace Netlify’s build integration with a GitHub Actions workflow.

Create .github/workflows/deploy.yml:

name: Deploy to Quant
on:
push:
branches: [main] # Match your production branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
env:
# Add your build-time environment variables here
NODE_ENV: production
- name: Deploy to Quant
uses: quantcdn/deploy-action@v6
with:
customer: ${{ secrets.QUANT_CUSTOMER }}
project: ${{ secrets.QUANT_PROJECT }}
token: ${{ secrets.QUANT_TOKEN }}
dir: dist # Adjust to your build output directory
skip-purge: true
- name: Purge cache
uses: quantcdn/purge-action@v6
with:
customer: ${{ secrets.QUANT_CUSTOMER }}
project: ${{ secrets.QUANT_PROJECT }}
token: ${{ secrets.QUANT_TOKEN }}
url_pattern: "/*"

Add these secrets to your GitHub repository (SettingsSecrets):

  • QUANT_CUSTOMER — Your organisation ID
  • QUANT_PROJECT — Your project name
  • QUANT_TOKEN — Your project token

Netlify environment variables set in the dashboard become GitHub Secrets or workflow environment variables:

Netlify dashboardGitHub Secrets (for sensitive values):

- name: Build
run: npm run build
env:
API_KEY: ${{ secrets.API_KEY }}

netlify.tomlWorkflow environment (for non-sensitive values):

- name: Build
run: npm run build
env:
SITE_URL: https://www.example.com
API_ENDPOINT: https://api.example.com

If you use Netlify Functions with runtime environment variables, migrate these to Quant Cloud or edge functions. See Edge Functions for configuration.

Convert your _redirects file to Quant Page Rules or deploy via CLI.

Netlify _redirects:

/old-page /new-page 301
/blog/* /articles/:splat 302

Option 1: Page Rules (recommended for complex rules)

In the dashboard, go to Page Rules and create rules:

URL MatchActionRedirect ToStatus
/old-pageRedirect/new-page301
/blog/*Redirect/articles/$1302

Option 2: CLI (for simple redirects)

Create redirects programmatically:

Terminal window
quant redirect /old-page /new-page 301
quant redirect /blog/* /articles/$1 302
NetlifyQuant Page Rules
:splat$* (entire path) or $1, $2 (captures)
:placeholder* with $1, $2 captures
200! (rewrite)Proxy action
404Custom response action

Netlify _headers file functionality maps to Quant’s custom headers:

Dashboard: Go to Custom HTTP Headers to set global headers.

Page Rules: Use the “Custom response headers” action for path-specific headers.

  1. Go to Forms in the dashboard
  2. Click New Form
  3. Enter the form action URL (e.g., /contact)

Quant Forms work with your existing HTML forms. Remove Netlify-specific attributes:

Before (Netlify):

<form name="contact" method="POST" data-netlify="true" netlify-honeypot="bot-field">
<input type="hidden" name="form-name" value="contact">
<input name="bot-field" style="display:none">
...
</form>

After (Quant):

<form action="/contact" method="POST">
<input type="hidden" name="honeypot" style="display:none">
...
</form>

Configure the honeypot field in the Quant dashboard under your form settings.

Set up email and Slack notifications in the form configuration. See Using Quant Forms.

Netlify Edge Functions can often be migrated to Quant Edge Functions:

Netlify Edge Function:

export default async (request, context) => {
const country = context.geo.country;
// ...
};

Quant Edge Function:

export default {
async fetch(event) {
const country = event.request.cf?.country;
// ...
}
};

Key differences:

  • Quant uses the fetch event pattern
  • Geolocation is available via event.request.cf or headers
  • Deploy via CLI: quant function ./my-function.js "Description"

Netlify serverless functions (Node.js backend) should migrate to Quant Cloud for full Node.js runtime support.

  1. Test your site on the Quant preview domain
  2. Verify all pages, forms, and redirects work correctly
  3. Check SSL certificate is ready (auto-provisioned)

In the Quant dashboard, go to Domains and add your custom domain. You’ll see DNS instructions:

For apex domains (example.com):

A record: @ → [Quant IP addresses]

For subdomains (www.example.com):

CNAME: www → [your-project].quantcdn.io

For the best performance and features, consider using Quant DNS:

  1. Create a DNS zone in DNS Management
  2. Import your existing records
  3. Update nameservers at your registrar

After DNS propagates (usually 1-24 hours):

  1. Test thoroughly — Check all pages, forms, and functions
  2. Monitor — Watch for 404s or errors in your logs
  3. Remove Netlify — Once confirmed working, delete your Netlify site
FeatureNetlifyQuant
Global CDN✅ 600+ locations
Automatic HTTPS
Branch deploys✅ Via workflow
Deploy previewsPreview domains
Forms
Edge Functions
Serverless FunctionsQuant Cloud
Split testingPage Rules
AnalyticsThird-party
WAFAdd-on✅ Included
DDoS protection
  • Check Node.js version matches your local environment
  • Ensure all dependencies are in package.json
  • Verify build command matches your netlify.toml
  • Page Rules are evaluated in order — check priority
  • Wildcards use * in Quant, not :splat
  • Verify redirect status codes (301 vs 302)
  • Ensure form action URL matches the configured form path
  • Check honeypot field configuration
  • Verify form is enabled in the dashboard