Skip to content

Instantly share code, notes, and snippets.

@dperuo
Last active December 27, 2023 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dperuo/a2148c33eb7ed8da9505d40ddd4bb01a to your computer and use it in GitHub Desktop.
Save dperuo/a2148c33eb7ed8da9505d40ddd4bb01a to your computer and use it in GitHub Desktop.
export const environment = (...features: ReadonlyArray<Record<string, unknown>>) => ({
redirectTo: {
pwa: 'http://localhost:8100',
},
...features.reduce((acc, next) => ({ ...acc, ...next}), {})
} as const);
// environment(withFoo(), withBar(), ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment