@absolute-web/vsf-wordpress 中文文档教程
VSF-Wordpress Integration
Installation
将您的模块添加到
Setup
在 middleware.config.js
文件中注册集成。
module.exports = {
integrations: {
wordpress: {
location: "@absolute-web/vsf-wordpress/server",
configuration: {
api: process.env.WORDPRESS_API_URL,
},
},
},
};
添加 WORDPRESS_API_URL
变量到 .env 文件
WORDPRESS_API_URL=<API_URL>
在 nuxt.config.js
文件中注册模块。
buildModules: {
[
'@vue-storefront/nuxt',
{
useRawSource: {
dev: [
'@absolute-web/vsf-wordpress',
],
prod: [
'@absolute-web/vsf-wordpress',
],
},
}
],
['@absolute-web/vsf-wordpress/nuxt'],
},
VSF-Wordpress Integration
Installation
Add your module to <Project>/packages
Setup
Register the integration in the middleware.config.js
file.
module.exports = {
integrations: {
wordpress: {
location: "@absolute-web/vsf-wordpress/server",
configuration: {
api: process.env.WORDPRESS_API_URL,
},
},
},
};
Add WORDPRESS_API_URL
variable to .env file
WORDPRESS_API_URL=<API_URL>
Register the module in the nuxt.config.js
file.
buildModules: {
[
'@vue-storefront/nuxt',
{
useRawSource: {
dev: [
'@absolute-web/vsf-wordpress',
],
prod: [
'@absolute-web/vsf-wordpress',
],
},
}
],
['@absolute-web/vsf-wordpress/nuxt'],
},
更多
你可能也喜欢
- 2d-polygon-boolean 中文文档教程
- @0x/abi-gen-templates 中文文档教程
- @0x0006e/babel-preset-react 中文文档教程
- @0xc14m1z/operaclick-website-ui 中文文档教程
- @104corp/cdk-aws-codedeploy-on-premises 中文文档教程
- @10xcompany/utils 中文文档教程
- @11ty/eleventy-plugin-vue 中文文档教程
- @7span/shilp-vue 中文文档教程
- @aaronpio/lotide 中文文档教程
- @aayushdrolia/dummy-package 中文文档教程