fix compling error

This commit is contained in:
yimysty
2022-06-17 15:13:00 -07:00
parent a90c52f126
commit 9a28a8d8ad
4 changed files with 1210 additions and 6818 deletions

View File

@@ -1,6 +1,6 @@
const core = require('@actions/core')
const axios = require('axios')
import ConfigParser from './config-parser.js'
const ConfigParser = require('./config-parser')
async function setPagesPath({staticSiteGenerator, baseUrl}) {
try {
@@ -19,7 +19,7 @@ async function setPagesPath({staticSiteGenerator, baseUrl}) {
var ssConfig = {
filePath:"./next.config.js",
type: "next",
pathName: "basePath",
pathName: "basePath",
newPath: baseUrl
}
break;
@@ -36,7 +36,7 @@ async function setPagesPath({staticSiteGenerator, baseUrl}) {
}
let configParser = new ConfigParser(ssConfig)
if (configParser.config) configParser.parse()
if (configParser.config) configParser.parse()
} catch (error) {
core.error('Set pages path in the static site generator config failed', error)