Skip to content

Commit

Permalink
Merge pull request #325 from Bixal/feature/BSD-322-remove-sb-app
Browse files Browse the repository at this point in the history
BSD fixes #322: Remove SB app so prod can load.
  • Loading branch information
mattsqd authored Oct 31, 2024
2 parents c4aa86d + 1ae8f99 commit 9f2d493
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions .platform/applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,47 +215,47 @@ bixalcom:
commands:
start: '[ "$PLATFORM_BRANCH" = main ] && bash cron/upload_logs_to_s3.sh'

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
#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

0 comments on commit 9f2d493

Please sign in to comment.