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

feat: sourcemaps + testing #2366

Merged
merged 2 commits into from
Jun 13, 2024
Merged

feat: sourcemaps + testing #2366

merged 2 commits into from
Jun 13, 2024

Conversation

fabis94
Copy link
Contributor

@fabis94 fabis94 commented Jun 13, 2024

generate source maps in prod build + allow devs to trigger errors (for now) through secret query param

@@ -22,6 +22,8 @@ const isLogPretty = ['1', 'true', true, 1].includes(NUXT_PUBLIC_LOG_PRETTY)

// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
// sourcemaps in prod only needed for datadog and should be deleted after (or at least made inaccessible?)
Copy link
Contributor

Choose a reason for hiding this comment

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

It's open source, so I don't see any need to delete them (provided they don't make the image too heavy)

@fabis94
Copy link
Contributor Author

fabis94 commented Jun 13, 2024

Example sourcemap upload command:

// CWD ./packages/frontend-2
DATADOG_SITE=datadoghq.eu DATADOG_API_KEY=XXXX yarn datadog-ci sourcemaps upload ./.output/public/_nuxt \
--service=fe2-dev/test \
--release-version=local-1.1.1 \
--minified-path-prefix=http://localhost:8081/_nuxt \

@iainsproat
Copy link
Contributor

Example sourcemap upload command:

// CWD ./packages/frontend-2
DATADOG_SITE=datadoghq.eu DATADOG_API_KEY=XXXX yarn datadog-ci sourcemaps upload ./.output/public/_nuxt \
--service=fe2-dev/test \
--release-version=local-1.1.1 \
--minified-path-prefix=http://localhost:8081/_nuxt \

Where is the domain provided @fabis94 ? Is this the service?
Maybe it is easier to just do this in CircleCI, and provide it a list of DataDog services? 🤔

@fabis94
Copy link
Contributor Author

fabis94 commented Jun 13, 2024

@iainsproat --minified-path-prefix is the bit that includes the domain of the app

@fabis94
Copy link
Contributor Author

fabis94 commented Jun 13, 2024

Apparently we may be able to avoid having to specify the app domain, and we can just specify the path prefix that leads to the minified assets (/_nuxt)

Copy link
Contributor

@iainsproat iainsproat left a comment

Choose a reason for hiding this comment

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

lgtm, we need to run it through circleci to properly test 🤞

@fabis94 fabis94 merged commit 8a55eae into main Jun 13, 2024
12 of 20 checks passed
@fabis94 fabis94 deleted the fabians/fe2-source-maps branch June 13, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants