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

Allow users to configure server build process by configuring rollup like we allow configuring Vite for client #2387

Open
infomiho opened this issue Nov 27, 2024 · 0 comments
Labels
enhancement New feature or request server

Comments

@infomiho
Copy link
Contributor

Sometimes users will need to customise the server build process e.g. while setting up Sentry, it offered me to upload source maps for better error reporting.

Example Rollup config for Sentry set up:

import { sentryRollupPlugin } from "@sentry/rollup-plugin";

export default {
  output: {
    sourcemap: true, // Source map generation must be turned on
  },
  plugins: [
    // Put the Sentry rollup plugin after all other plugins
    sentryRollupPlugin({
      authToken: process.env.SENTRY_AUTH_TOKEN,
      org: "wasp-g1",
      project: "node-express",
    }),
  ],
};
@infomiho infomiho added enhancement New feature or request server labels Nov 27, 2024
@Martinsos Martinsos changed the title Expose a rollup config hook like we do for Vite Allow users to configure server build process by configuring rollup like we allow configuring Vite for client Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server
Projects
None yet
Development

No branches or pull requests

1 participant