Make development mode optional and secure for production use

Created on 5 September 2023, over 1 year ago
Updated 24 November 2023, about 1 year ago

Would like a public URL for the storybook using cl_server.
However, currently, this project is focused on Storybook for the development (local) environment.
Using it in a development environment requires disabling all caches on the component rendering endpoint. This is necessary to allow hot reloading when working locally.

The following is required for the cl_server storybook to work:
- Permission to use the CL Server endpoint set to Anonymous user
- The following needs to be set in services.yml

parameters:
  twig.config:
    debug: true
    cache: false
  cors.config:
    enabled: true
    allowedHeaders: ['*']
    allowedMethods: ['*']
    allowedOrigins: ['*']
    exposedHeaders: false
    maxAge: false
    supportsCredentials: true
services:
  cache.backend.null:
    class: Drupal\Core\Cache\NullBackendFactory

No ideal to disable the cache on production environments.

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States andysipple

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024