File tree 1 file changed +15
-5
lines changed
examples/next/wp-theme-rendered-blocks
1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,20 @@ cd examples/next/render-blocks-pages-router
72
72
npm install
73
73
```
74
74
75
- ### Start the development server
75
+ ### Build and start the application
76
76
77
- ``` bash
78
- npm run dev
79
- ```
77
+ - ` cd examples/next/wp-theme-rendered-blocks `
78
+ - Then run ` npm run example:build ` will build and start your application.
79
+ - This does the following:
80
+ - Starts up [ wp-env] ( https://developer.wordpress.org/block-editor/getting-started/devenv/get-started-with-wp-env/ )
81
+ - Imports the database from [ wp-env/db/database.sql] ( wp-env/db/database.sql )
82
+ - Install Next.js dependencies for ` example-app `
83
+ - Runs the Next.js dev script
84
+
85
+ Congratulations, WordPress should now be fully set up.
86
+
87
+ | Frontend | Admin |
88
+ | ------------------------------------------------ | ------------------------------------------------------------------ |
89
+ | [ http://localhost:3000/ ] ( http://localhost:3000/ ) | [ http://localhost:8888/wp-admin/ ] ( http://localhost:8888/wp-admin/ ) |
80
90
81
- http://localhost:3000/ should render the blocks as shown below.
91
+ > ** Note: ** The login details for the admin is username "admin" and password "password"
You can’t perform that action at this time.
0 commit comments