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

how to add custom code in sample? #47

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sjvans
Copy link
Contributor

@sjvans sjvans commented Nov 15, 2023

i think we need guidance for this

i see two options:

  1. server.js
  2. cds-plugin.js + dev dep to self

i prefer option 2. as it would, in theory, allow to require the sample in another sample (e.g., "mashup")

@nkaputnik
Copy link

I think using cds-plugin.js is the more elegant solution, but needs to be documented better for unsupsecting developers

@sjvans
Copy link
Contributor Author

sjvans commented Nov 15, 2023

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