Skip to content

Commit

Permalink
fix: Use ESM syntax for Faust config (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
blakewilson authored Aug 27, 2021
1 parent c6deb26 commit 074b612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/next/getting-started/src/faust.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { headlessConfig } = require('@faustjs/core');
import { headlessConfig } from '@faustjs/core';

if (!process.env.NEXT_PUBLIC_WORDPRESS_URL) {
console.error(
Expand All @@ -9,7 +9,7 @@ if (!process.env.NEXT_PUBLIC_WORDPRESS_URL) {
/**
* @type {import("@faustjs/core").HeadlessConfig}
*/
module.exports = headlessConfig({
export default headlessConfig({
wpUrl: process.env.NEXT_PUBLIC_WORDPRESS_URL,
apiClientSecret: process.env.WP_HEADLESS_SECRET,
});

0 comments on commit 074b612

Please sign in to comment.