These instructions will help you develop and test new features.
Getting Started
Development Environment
Integrations
Making Changes
Testing
Build Workflow
Retrieve the following files from a development admin:
.env.production.local
.env.test.local
Place them in the root of the storefront application directory.
AddThis is a content sharing platform. In addition to providing content sharing tools, AddThis provides tool for following, related posts, social analytics, and Audience Targeting tools.
Google Analytics is a web analytics service that tracks and reports website traffic.
The storefront uses the Measurement Protocol for Universal Analytics to track page views, web vitals, and errors.
Environment Variables
GA_TRACKING_ID
VERCEL_ENV
VERCEL_GIT_COMMIT_REF
VERCEL_GIT_COMMIT_SHA
The Morena's Kustomz Serverless API (KAPI) is used to fetch and search for
Shopify resources, as well as fetch the data for the store Layout
component.
Environment Variables
API_URL
Opsgenie is an on-call and alert management service for software projects.
Its primary use is to dispatch alerts from GitHub and Sentry.
Sentry is an error monitoring service. When an issue is reported, a message
will be sent to the #opsgenie
channel in this project's Slack workspace.
Environment Variables
SENTRY_AUTH_TOKEN
SENTRY_DSN
SENTRY_ORG
SENTRY_PROJECT
SENTRY_RELEASE
Directory: src/config
Directory: src/pages
For more information, see the Next.js Pages documentation.
Directory: src/subdomains
Components, utilities, and other modules grouped by feature set:
app
: General application features and utilitiescms
: Content management (menus and pages)sales
: Collection and product listingsstore
: Store policies and other properties
For more information about the subdomain architecure pattern, read Does DDD Belong on the Frontend? by Khalil Stemmler.
Directory: __tests__
Command: yarn test
For more information, see the root package Contributing Guide.
To create a local production
build:
yarn build
Next.js will load the .env.production.local
file by default.
To both create a production
build and emulate it:
yarn start
The storefront application will be available at http://localhost:9000
.