SEASON 2027 LAUNCH -50% OFF WITH FUNKYPRO PROMO CODE AT CHECKOUT.
SuperfunkyPRO WP & Woo Theme
Browse documentation

Documentation / Setup

Set up the frontend

The Superfunky storefront source is licensed under MIT. The same codebase is used for Free Core, Pro, self-hosted, and managed deployments; the WordPress backend controls which optional features are active.

Current source availability: the complete deployable frontend is maintained at coded-letter/superfunky-storefront. GitHub Actions synchronizes reviewed storefront changes from the monorepo without copying private configuration or credentials.

Local development

1. Install the tools

Install:

  • Git;
  • Node.js 22 or newer;
  • pnpm 9 or newer.

The public repository currently pins pnpm 9.15.

2. Check out and configure

git clone https://github.com/coded-letter/superfunky-storefront.git
cd superfunky-storefront
pnpm install
cp apps/storefront/.env.example apps/storefront/.env

Edit apps/storefront/.env:

VITE_GRAPHQL_ENDPOINT=https://backend.example.com/graphql
VITE_SITE_URL=https://example.com
VITE_STRIPE_PUBLISHABLE_KEY=
VITE_GEOLOCATION_ENDPOINT=

Always set your own GraphQL endpoint. The development app currently has a demo fallback when the value is empty; relying on it can make local testing appear to use your content when it is actually connected to the Superfunky demo backend.

Only public values belong in this file. Never add payment secrets, webhook secrets, WordPress passwords, SMTP credentials, or private API keys.

3. Run the storefront

pnpm dev

Open the URL shown by Vite, normally http://127.0.0.1:4173.

Verify:

  • the correct store name and content load;
  • products open from your backend;
  • browser requests target your backend hostname;
  • cart requests receive Cart-Token;
  • enabled account, language, and payment features behave as expected.

Self-hosted production

1. Configure build values

Set these in the hosting provider rather than committing a production .env file:

ValueUse
VITE_GRAPHQL_ENDPOINTRequired HTTPS WPGraphQL endpoint
VITE_SITE_URLFinal public storefront origin for canonical and generated URLs
VITE_STRIPE_PUBLISHABLE_KEYOptional public Stripe key
VITE_GEOLOCATION_ENDPOINTOptional public geolocation service

2. Build

pnpm install --frozen-lockfile
pnpm build

Publish apps/storefront/dist.

The build prerenders stable and discovered routes and mirrors enabled discovery files from WordPress. Production builds do not use the development GraphQL fallback.

Use STOREFRONT_ARTIFACT_MODE=off for the current static release. shadow may be used in an explicitly monitored validation environment, but public artifact delivery is not release-ready.

3. Configure the host

The host must:

  • serve generated files over HTTPS;
  • route unknown application paths to index.html;
  • preserve real generated HTML and XML files before applying that fallback;
  • serve hashed assets with long-lived immutable caching;
  • avoid public caching of customer-specific API responses;
  • support redirects and security headers required by the site;
  • provide a deploy hook if WordPress-triggered rebuilds are used.

Netlify-style hosts can use this fallback:

/*  /index.html  200

Adapt the syntax for other providers.

4. Preview before production

Deploy to a temporary URL first. Set the WordPress Control Center Frontend URL to that draft during acceptance, then test the launch checklist from the WooCommerce guide.

Do not connect the production domain until canonical URLs, redirects, checkout, and customer routes have been tested in a production-mode build.

Frontend as a Service

For the managed frontend plan, do not create a second production deployment yourself. Provide Coded Letter with:

  • the HTTPS GraphQL endpoint;
  • preferred provider site name;
  • production domain;
  • required public frontend values;
  • launch and DNS contacts.

Coded Letter then:

  1. runs backend schema, product, and Store API CORS readiness checks;
  2. configures the supported repository, branch, build, and publish settings;
  3. creates or updates the managed frontend site;
  4. adds allowlisted public environment values;
  5. configures the build hook;
  6. publishes a draft deployment for acceptance;
  7. assists with DNS cutover after approval.

WordPress passwords and provider secrets are not frontend environment values. Backend preparation remains your responsibility under Frontend as a Service.

Deploy directly to Netlify

The public repository includes a reviewed netlify.toml, SPA fallback rules, security headers, and a Deploy to Netlify flow:

Deploy the Superfunky storefront to Netlify

Set your own public build values during site creation. A deploy created from the public repository is your client deployment; future upstream changes arrive in the public repository but are not forced into a client site without its normal Git/deploy workflow.

Full Stack managed

For Full Stack managed hosting, Coded Letter prepares both WordPress and the frontend. You provide the domain, business configuration, provider accounts, content/migration inputs, and launch approval described in Full Stack requirements.

Next: prepare DNS.

September 2026 static-first frontend setup

Add the following variables to each storefront deployment. Keep every site key unique and copy the signing secret exactly from WordPress.

STOREFRONT_ARTIFACT_MODE=artifact
STOREFRONT_ARTIFACT_DELIVERY=static-first
STOREFRONT_ARTIFACT_ORIGIN=https://wordpress.example.com
STOREFRONT_ARTIFACT_SITE_KEY=unique-site-key
STOREFRONT_ARTIFACT_SIGNING_SECRET=same-secret-as-wordpress
VITE_ARTIFACT_ROUTE_HYDRATION=true
  • Builds generate complete HTML and route-specific hydration for pages, products, posts, authors and taxonomies.
  • The frontend host serves static route documents; no Netlify Function, Vercel Function or Cloudflare Worker is required.
  • After changing WordPress content, publish through Rebuild storefront. The previous deployment remains authoritative until the new build succeeds.
  • To roll back, restore the previous host deployment. To return to proxy delivery, set STOREFRONT_ARTIFACT_DELIVERY=proxy and rebuild.

Review validation and remaining fleet tasks.