Skip to content

Commit cd977a3

Browse files
committed
fix(wordpress): fix BASE_URL / HOME_URL
1 parent 109b292 commit cd977a3

File tree

1 file changed

+2
-2
lines changed
  • packages/smooth-backend-wordpress/src/wordpress

1 file changed

+2
-2
lines changed

packages/smooth-backend-wordpress/src/wordpress/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ const themeTpl = fs.readFileSync(path.join(themeDir, 'index.php'), 'utf-8')
1010

1111
export async function onBuild({ options }) {
1212
const pluginDistDir = await getPluginDir(options.basePath)
13-
const pluginContent = pluginTpl.replace(/%BASE_URL%/g, options.homeUrl)
13+
const pluginContent = pluginTpl.replace(/%HOME_URL%/g, options.homeUrl)
1414
const pluginPath = path.join(pluginDistDir, 'index.php')
1515
await writeFile(pluginPath, pluginContent)
1616

1717
const themeDistDir = await getThemeDir(options.basePath)
18-
const themeContent = themeTpl.replace(/%BASE_URL%/g, options.homeUrl)
18+
const themeContent = themeTpl.replace(/%HOME_URL%/g, options.homeUrl)
1919
const themePath = path.join(themeDistDir, 'index.php')
2020
await copyDir(themeDir, themeDistDir, {
2121
filter: filename => !/index\.php/.test(filename),

0 commit comments

Comments
 (0)