Skip to content

Commit 4a0d585

Browse files
move static under src
1 parent a2cf0d9 commit 4a0d585

8 files changed

Lines changed: 2 additions & 2 deletions

File tree

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/tasks/cwv-demo-suggestions-processor/handler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function hasExistingIssues(suggestion) {
7373
*/
7474
function readStaticFile(fileName, logger) {
7575
try {
76-
const filePath = path.resolve(process.cwd(), 'static', fileName);
76+
const filePath = path.resolve(process.cwd(), 'src/static', fileName);
7777
const content = fs.readFileSync(filePath, 'utf-8');
7878
logger.debug(`Successfully read content from ${fileName} at ${filePath}`);
7979
return content;
@@ -128,7 +128,7 @@ async function updateSuggestionWithGenericIssues(
128128

129129
let cwvReferenceSuggestions = { lcp: [], cls: [], inp: [] };
130130
try {
131-
const jsonPath = path.resolve(process.cwd(), 'static/aem-best-practices.json');
131+
const jsonPath = path.resolve(process.cwd(), 'src/static/aem-best-practices.json');
132132
logger.info(`Loading CWV reference suggestions from: ${jsonPath}`);
133133
const rawData = fs.readFileSync(jsonPath, 'utf-8');
134134
cwvReferenceSuggestions = JSON.parse(rawData);

0 commit comments

Comments
 (0)