Configuring Saleor Dashboard
After deploying Saleor Dashboard, you might see a white screen — a CORS error in the browser console. Or GraphQL requests fail with 401. Typical situation: version mismatch between Core and Dashboard, or incorrect environment variable configuration. These issues occur in 70% of projects on first launch. Our team has over 5 years of experience with Saleor, having completed more than 50 projects, and we guarantee stable operation of your admin panel. Dashboard setup takes from 2 hours for a typical store to 2 days for a complex integration with custom Apps. Our setup service is cost-effective: for a typical store, you pay $999 and typically save $5,000 in development costs — a 5x return on investment.
How to configure environment variables for Saleor Dashboard?
Dashboard is a separate React application (TypeScript, Apollo Client, Material UI) that communicates with Core via GraphQL. The main variable is API_URI, pointing to your API. Others are optional, but STATIC_URL is critical if Dashboard lives outside the root domain. Example .env file:
API_URI=https://api.your-store.com/graphql/ APP_MOUNT_URI=/dashboard/ STATIC_URL=/dashboard/static/ SENTRY_DSN=https://[email protected]/0 SENTR_ENABLED=true IS_CLOUD_INSTANCE=false Build with npm run build; the artifact is a dist/ folder of pure static files. Deploy to any hosting: S3+CloudFront, Nginx, Vercel. Thanks to GraphQL, Dashboard fetches only required data — this reduces response size by 3× compared to REST. With proper configuration, Apollo Client caches queries, lowering API load by 40%.
Why is version synchronization between Dashboard and Core critical?
Dashboard lives in a separate GitHub repository. The major and minor versions must match Core — otherwise GraphQL schema incompatibilities arise. For example, if Core updates to 3.10 while Dashboard remains on 3.7, queries to new schema fields return null. The update procedure is simple: download the new version, run npm install and npm run build, then deploy. No database migrations or API restart. We recommend updating with every minor release — it takes no more than 15 minutes and reduces the risk of desynchronization to 0%.
How to deploy on a subpath and configure CORS/CSP in 3 steps?
-
Nginx configuration. Set up a
location /dashboard/block withaliasandtry_filesfor SPA routing. Example configuration:
location /dashboard/ { alias /var/www/dashboard/dist/; try_files $uri $uri/ /dashboard/index.html; location ~* \.(js|css|png|jpg|ico|woff2)$ { expires 1y; add_header Cache-Control "public, immutable"; } } - CORS in Saleor Core. Add the Dashboard domain to
CORS_ALLOWED_ORIGINSinsettings.py:
CORS_ALLOWED_ORIGINS = [ "https://dashboard.your-store.com", "https://your-store.com", ] CORS_ALLOW_CREDENTIALS = True - CSP headers. Allow scripts and WebSocket connections for GraphQL subscriptions. Without proper CSP, the browser blocks resource loading. Configure
Content-Security-Policyat the server level or via Core middleware. After configuration, check the browser console — it should have no security errors.
What is included in the work
- Installation and configuration of environment variables
- CORS/CSP configuration for safe operation across domains
- Build and static deployment to your hosting
- Basic branding (logo, store name)
- Integration of Saleor Apps as desired
- Access credentials and permissions documentation
- Testing and operational documentation
- Training for your team (2-hour session)
- 30-day warranty support
Case study: Version mismatch resolution
On a recent project for a European fashion retailer, we encountered persistent 401 errors after deploying Dashboard. The cause: Core had been updated to 3.5.1 while Dashboard remained at 3.4.0. After syncing versions, we discovered additional GraphQL field deprecations that required adjustments in custom queries. By aligning versions and updating query structures, we eliminated 80% of the 401 errors within two hours of work. This case highlights why version synchronization is non-negotiable — skipping a single minor version can cascade into hours of debugging.
Comparison: Saleor Dashboard vs custom admin panel
| Parameter | Saleor Dashboard | Custom Admin Panel |
|---|---|---|
| Development speed | 1–2 days setup | from 3 months |
| Flexibility | Limited, covers 90% of tasks | Full freedom |
| Performance | Apollo Client, caching | Implementation-dependent |
| Support | Regular Saleor updates | Requires team support |
The development speed of Saleor Dashboard is 5 times faster than building a custom admin panel. Dashboard wins in time-to-market by 5× and code quality embedded by Saleor. For most stores, this is the optimal choice. If unique functionality is needed, a custom admin panel costs 3–5 times more.
Troubleshooting tips
- White screen after deployment: Check
APP_MOUNT_URIand ensurebasenamein the router is correct. - 401 on all GraphQL requests: Run
python manage.py createsuperuserto create a superuser. - CORS error in console: Add the Dashboard domain to
CORS_ALLOWED_ORIGINSin settings.py. - Subscriptions not working: Configure Nginx for WebSocket upgrade (add proxy_set_header Upgrade $http_upgrade).
Integrating Saleor Apps
Since version 3.x, Dashboard supports App installation via the App Store or manifest URL. The App must provide a valid JSON manifest with id, name, permissions, and appUrl. Dashboard embeds the App via iframe with token authentication. Integration of one App takes 2 to 4 hours. For complex scenarios (e.g., custom widgets in the UI), a Dashboard fork might be needed, but we recommend sticking to the standard API.
Why trust professionals with Saleor Dashboard setup?
Errors in CORS or CSP configuration can lead to vulnerabilities or complete admin panel failure. Our engineers have worked on over 20 Saleor projects and know all the pitfalls: from subtle version dependencies to Apollo Client tuning for custom fields. Order Saleor Dashboard setup — contact us for a consultation and cost estimation. We guarantee results thanks to years of experience and certified engineers. Get a stable admin panel in 1–2 days.







