How do I configure the output directory for the Front End Hosting - Advanced offering?
The Front End Hosting - Advanced offering expects the output directory in a default location based on a framework such as .next or .nuxt. To customize the output directory, edit the framework’s config file,add the distDir property in next.config.js for the Next framework , add the buildDir property in nuxt.config.js for Nuxt.
The following is an example configuration for the Next framework:
const path = require('path');
const nextConfig = {
distDir: 'path/to/output-dir',
};
module.exports = nextConfig;
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.