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 packages to modify the settings of a site [13pt] #705

Open
SantosGuillamot opened this issue Feb 9, 2021 · 0 comments
Open

Allow packages to modify the settings of a site [13pt] #705

SantosGuillamot opened this issue Feb 9, 2021 · 0 comments
Labels
Projects

Comments

@SantosGuillamot
Copy link
Member

This is needed for AMP feature. For full context please check out the final Implementation proposal.


The @frontity/amp package needs to be able to change the entryPoints and bundles settings.

This will be managed by a settings export in the frontity.config.js file of this package.

// packages/amp/frontity.config.js
export const settings = ({ settings }) => {
  settings.entryPoints = "amp";
  settings.bundles = ["server"];
};

The settings export of the frontity.config.js file of each package will be executed right after getting the settings from the frontity.settings.js file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
AMP feature
  
To do
Development

No branches or pull requests

1 participant