Skip to content

Commit

Permalink
Merge pull request #328 from Bixal/hotfix/1.6.2
Browse files Browse the repository at this point in the history
Updating develop with Hotfix/1.6.2
  • Loading branch information
mattsqd authored Nov 1, 2024
2 parents 10c5d9c + 23cbeab commit 55810df
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 51 deletions.
86 changes: 47 additions & 39 deletions .platform/applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ bixalcom:
# The runtime the application uses.
type: 'php:8.3'

# https://docs.platform.sh/create-apps/app-reference/single-runtime-image.html#sizes
size: AUTO

dependencies:
php:
composer/composer: '^2'
Expand Down Expand Up @@ -212,42 +215,47 @@ bixalcom:
commands:
start: '[ "$PLATFORM_BRANCH" = main ] && bash cron/upload_logs_to_s3.sh'

storybook:
type: nodejs:18

web:
locations:
'/':
# The folder from which to serve static assets, for this location.
#
# This is a filesystem path, relative to the application root.
root: 'storybook-static'

# How long to allow static assets from this location to be cached.
#
# Can be a time in seconds, or -1 for no caching. Times can be
# suffixed with "s" (seconds), "m" (minutes), "h" (hours), "d"
# (days), "w" (weeks), "M" (months, as 30 days) or "y" (years, as
# 365 days).
expires: 5m

# Allow storybook's landing .html file to be picked up when going to /.
index:
- 'index.html'

# Disable server side scripts.
scripts: false

# Allow access to all static files.
allow: true

commands:
# Run a no-op process that uses no CPU resources since this is a static site
start: sleep infinity

hooks:
build: |
# Building for a sub-dir caused a 502 on platform that I could not
# figure out.
# BASE_PATH=/sb npm run build-storybook
npm run build-storybook
#storybook:
# type: nodejs:18
#
# # https://docs.platform.sh/create-apps/app-reference/single-runtime-image.html#sizes
# # Running out of resources in prod because this added a HIGH_CPU profile.
# # Lower the size.
# size: S
#
# web:
# locations:
# '/':
# # The folder from which to serve static assets, for this location.
# #
# # This is a filesystem path, relative to the application root.
# root: 'storybook-static'
#
# # How long to allow static assets from this location to be cached.
# #
# # Can be a time in seconds, or -1 for no caching. Times can be
# # suffixed with "s" (seconds), "m" (minutes), "h" (hours), "d"
# # (days), "w" (weeks), "M" (months, as 30 days) or "y" (years, as
# # 365 days).
# expires: 5m
#
# # Allow storybook's landing .html file to be picked up when going to /.
# index:
# - 'index.html'
#
# # Disable server side scripts.
# scripts: false
#
# # Allow access to all static files.
# allow: true
#
# commands:
# # Run a no-op process that uses no CPU resources since this is a static site
# start: sleep infinity
#
# hooks:
# build: |
# # Building for a sub-dir caused a 502 on platform that I could not
# # figure out.
# # BASE_PATH=/sb npm run build-storybook
# npm run build-storybook
24 changes: 12 additions & 12 deletions .platform/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
# Base the cache on the session cookie and custom Drupal cookies. Ignore all other cookies.
cookies: ['/^SS?ESS/', '/^Drupal.visitor/']

"https://sb.{default}":
type: upstream
upstream: "storybook:http"
tls:
# https://docs.platform.sh/define-routes/https.html#stricttransportsecurity
strict_transport_security:
# This is one year, can't change.
enabled: true
include_subdomains: false
preload: false
cache:
enabled: true
#"https://sb.{default}":
# type: upstream
# upstream: "storybook:http"
# tls:
# # https://docs.platform.sh/define-routes/https.html#stricttransportsecurity
# strict_transport_security:
# # This is one year, can't change.
# enabled: true
# include_subdomains: false
# preload: false
# cache:
# enabled: true

0 comments on commit 55810df

Please sign in to comment.