Skip to content

Commit 074b612

Browse files
author
Blake Wilson
authored
fix: Use ESM syntax for Faust config (#420)
1 parent c6deb26 commit 074b612

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/next/getting-started/src/faust.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { headlessConfig } = require('@faustjs/core');
1+
import { headlessConfig } from '@faustjs/core';
22

33
if (!process.env.NEXT_PUBLIC_WORDPRESS_URL) {
44
console.error(
@@ -9,7 +9,7 @@ if (!process.env.NEXT_PUBLIC_WORDPRESS_URL) {
99
/**
1010
* @type {import("@faustjs/core").HeadlessConfig}
1111
*/
12-
module.exports = headlessConfig({
12+
export default headlessConfig({
1313
wpUrl: process.env.NEXT_PUBLIC_WORDPRESS_URL,
1414
apiClientSecret: process.env.WP_HEADLESS_SECRET,
1515
});

0 commit comments

Comments
 (0)