Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Storybook: Disable sourcemaps when building in CI #19862

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

JReinhold
Copy link
Contributor

@JReinhold JReinhold commented Nov 16, 2022

Disable sourcemaps when building the UI and Blocks Storybooks in CI, in an attempt to fix the issue with running out of memory.

Example of a failed pipeline: https://app.circleci.com/pipelines/github/storybookjs/storybook/32439/workflows/fc163113-af9a-4919-9699-84407170251e/jobs/442029

@JReinhold JReinhold self-assigned this Nov 16, 2022
@JReinhold JReinhold added the build Internal-facing build tooling & test updates label Nov 16, 2022
@JReinhold JReinhold requested a review from IanVS November 16, 2022 20:47
build: {
...viteConfig.build,
// disable sourcemaps in CI to not run out of memory
sourcemap: process.env.CI !== 'true',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified that CircleCI sets it to "true" and not just "1" or something. https://circleci.com/docs/variables/#built-in-environment-variables

@JReinhold JReinhold merged commit 2283ebb into next Nov 16, 2022
@JReinhold JReinhold deleted the jeppe/sbui-disable-sourcemaps-in-ci branch November 16, 2022 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Internal-facing build tooling & test updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants