You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// vike.config.jsexportdefault{dangerouslySkipConventions: {// Allow any NODE_ENV valuenodeEnv: true,// Allow any path aliases, e.g. path aliases that cannot be disambiguated from npm package names pathAlias: true}}
This new config turns errors into warnings, unblocking users that cannot respect conventions.
With the upcoming onLog() hook you'll then also be able to suppress the warning.
Vike could accept a value 'suppress-warning' (e.g. dangerouslySkipConventions.nodeEnv === 'suppress-warning') for an easier DX, but we purposely make it tedious to deviate from conventions in order to encourage users to respect them.
Edit: dangerouslySkipConventions.nodeEnv will probably not be needed after #1528 is implemented.
Description
This new config turns errors into warnings, unblocking users that cannot respect conventions.
With the upcoming
onLog()
hook you'll then also be able to suppress the warning.Edit:
dangerouslySkipConventions.nodeEnv
will probably not be needed after #1528 is implemented.See also
passToClient
error #1776The text was updated successfully, but these errors were encountered: