Skip to content

Commit f362d6f

Browse files
committed
updated path
1 parent ac360cc commit f362d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wp-serverless-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function compile_db(
3333
if (getenv("SHIFTER_ACCESS_TOKEN") === false) {
3434
$url = 'https://demo.wp-api.org/wp-json/wp/v2/' . $route;
3535
} else {
36-
$url = '/wp-json/wp/v2/' . $route;
36+
$url = esc_url( home_url( '/' ) ) . 'wp-json/wp/v2/' . $route;
3737
}
3838

3939
$jsonData = json_decode( file_get_contents($url) );

0 commit comments

Comments
 (0)