-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: undefined BASE_URL value in Netlify function (#2)
* fix: attempt 1 * fix: attempt 2 * chore(ci): add branch-deploys.yml * chore: reset to default google midlleware
- Loading branch information
1 parent
92de08e
commit 74fbf6c
Showing
6 changed files
with
75 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Branch Deploys for Netlify | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- next | ||
types: | ||
- closed | ||
push: | ||
branches: | ||
- next | ||
paths: | ||
- "netlify/functions/**/*.*" | ||
- "src/**/*.*" | ||
- "lib/**/*.*" | ||
- "netlify.toml" | ||
|
||
jobs: | ||
build_and_deploy: | ||
name: Build and deploy to Netlify | ||
runs-on: ubuntu-22.04 | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: package.json | ||
- name: Install PNPM | ||
run: npm install -g pnpm | ||
- name: Get Store Path | ||
id: get-store-path | ||
run: echo "store-path=$(pnpm store path)\n" >> $GITHUB_OUTPUT | ||
- name: Setup Cache | ||
id: setup-cache | ||
uses: actions/cache@v4 | ||
with: | ||
key: ${{ runner.os }}-${{ hashFiles('**/*lock*', 'package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ hashFiles('**/*lock*', 'package.json') }} | ||
${{ runner.os }}- | ||
path: | | ||
node_modules | ||
${{ steps.get-store-path.outputs.store-path }} | ||
- name: Install Dependencies 📦 | ||
if: steps.setup-cache.outputs.cache-hit != 'true' | ||
run: pnpm i | ||
- name: Build ⚙️ & Deploy ⬆️ | ||
run: netlify deploy --alias="${{ github.ref_name }}" --build --context deploy-preview --message="${{ github.event.head_commit.message }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,4 @@ | ||
# Tellme | ||
# TellThem | ||
[](https://app.netlify.com/sites/tellthem/deploys) | ||
|
||
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.0.6. | ||
|
||
## Development server | ||
|
||
To start a local development server, run: | ||
|
||
```bash | ||
ng serve | ||
``` | ||
|
||
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files. | ||
|
||
## Code scaffolding | ||
|
||
Angular CLI includes powerful code scaffolding tools. To generate a new component, run: | ||
|
||
```bash | ||
ng generate component component-name | ||
``` | ||
|
||
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: | ||
|
||
```bash | ||
ng generate --help | ||
``` | ||
|
||
## Building | ||
|
||
To build the project run: | ||
|
||
```bash | ||
ng build | ||
``` | ||
|
||
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed. | ||
|
||
## Running unit tests | ||
|
||
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: | ||
|
||
```bash | ||
ng test | ||
``` | ||
|
||
## Running end-to-end tests | ||
|
||
For end-to-end (e2e) testing, run: | ||
|
||
```bash | ||
ng e2e | ||
``` | ||
|
||
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. | ||
|
||
## Additional Resources | ||
|
||
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. | ||
A social media status marketing platform. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const environment = { | ||
apiOrigin: location.origin | ||
}; |