Skip to content

Commit

Permalink
Merge pull request #17 from PBTP/feat/axios
Browse files Browse the repository at this point in the history
Feat/axios
  • Loading branch information
VictoryJu authored Jun 3, 2024
2 parents 6ce2dd9 + 8e8eb72 commit e346d0d
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 505 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: .env setting
run: |
echo -e "API_URL=${{secrets.API_URL}}\nGA_ID=${{secrets.GA_ID}}\nGTM_ID=${{secrets.GTM_ID}}" >> .env.production
- name: Install Dependencies
run: npm install

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: .env setting
run: |
echo -e "API_URL=${{secrets.API_URL}}\nGA_ID=${{secrets.GA_ID}}\nGTM_ID=${{secrets.GTM_ID}}" >> .env.production
- name: Install Dependencies
run: npm install

Expand Down
4 changes: 2 additions & 2 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const config: GatsbyConfig = {
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
'G-RKBCHRSYZL', // Google Analytics / GA
process.env.GA_ID, // Google Analytics / GA
],
gtagConfig: {
optimize_id: 'GTM-T9FW9RST', // Google Tag Manager / GTA
optimize_id: process.env.GTM_ID, // Google Tag Manager / GTA
anonymize_ip: true,
cookie_expires: 1000,
},
Expand Down
Loading

0 comments on commit e346d0d

Please sign in to comment.