diff --git a/buildspec.prod.yml b/buildspec.prod.yml index 6e9e0a7..9e216fc 100644 --- a/buildspec.prod.yml +++ b/buildspec.prod.yml @@ -10,8 +10,6 @@ phases: - yarn -v pre_build: commands: - - echo "@sinossi:registry=https://git.sinossi.it/api/v4/projects/271/packages/npm/" > .npmrc - - echo "//git.sinossi.it/api/v4/projects/271/packages/npm/:_authToken=kdP6WxGtg71-MzJZDRe9" >> .npmrc - yarn install build: commands: diff --git a/buildspec.staging.yml b/buildspec.staging.yml index 21b9a78..81dd894 100644 --- a/buildspec.staging.yml +++ b/buildspec.staging.yml @@ -3,23 +3,11 @@ version: 0.2 phases: install: runtime-versions: - nodejs: 18 - commands: - - npm install -g yarn - - echo yarn -v - - yarn -v - pre_build: - commands: - - echo "@sinossi:registry=https://git.sinossi.it/api/v4/projects/271/packages/npm/" > .npmrc - - echo "//git.sinossi.it/api/v4/projects/271/packages/npm/:_authToken=kdP6WxGtg71-MzJZDRe9" >> .npmrc - - yarn install + nodejs: 20 build: commands: - - yarn extract - - yarn compile - - mkdir -pv public/loaded-files - - yarn build:staging + - npm install && npm run build:staging artifacts: files: - '**/*' - base-directory: 'build' \ No newline at end of file + base-directory: 'build' diff --git a/src/App.js b/src/App.js index b0de2a4..da36446 100644 --- a/src/App.js +++ b/src/App.js @@ -7,12 +7,10 @@ import { I18nProvider } from '@wordpress/react-i18n'; const i18n = createI18n({}, 'gepafin'); function App() { - console.log('mount') useEffect(() => { fetch('/languages/en_US.json') .then((res) => res.json()) .then(res => { - console.log('loaded') setLocaleData(res.locale_data['gepafin'], 'gepafin') }) }, []);