Skip to content

Use Faust.js in existing Next.js installation #1814

Answered by theodesp
EnablingLogic asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @EnablingLogic It would be possible to start using Faust.js on an existing Next.js installation.

  1. You will have to include Faust.js dependencies:

"@apollo/client": "^3.6.6",
"@faustwp/cli": "^2.0.0",
"@faustwp/core": "^2.1.2",
"graphql": "^16.6.0",

  1. Then create a faust.config.js in the root folder
// faust.config.js
import { setConfig } from '@faustwp/core';
import templates from './wp-templates';
import possibleTypes from './possibleTypes.json';

/**
 * @type {import('@faustwp/core').FaustConfig}
 **/
export default setConfig({
  templates,
  plugins: [],
  experimentalToolbar: true,
  possibleTypes,
});
  1. use the following package.json scripts

//package.json

"scripts": {
    "dev": "

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@EnablingLogic
Comment options

Answer selected by EnablingLogic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants