[](https://gitpod.io/#https://github.com/[your GitHub username]/[your repository])
This file contains hidden or 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
| // Backend | |
| import formidable from 'formidable'; | |
| export const config = { | |
| api: { | |
| bodyParser: false, | |
| }, | |
| }; | |
| export default async (req, res) => { |
This file contains hidden or 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
| param( | |
| [Int] $port | |
| ) | |
| $URL = "http://127.0.0.1:$port" | |
| [environment]::SetEnvironmentVariable('HTTP_PROXY', $URL, "Machine") | |
| [environment]::SetEnvironmentVariable('HTTPS_PROXY', $URL, "Machine") | |
| git config --global http.proxy $URL | |
| git config --global https.proxy $URL |
This file contains hidden or 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
| name: CI & CD | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - package.json | |
| jobs: | |
| Build-and-Publish: | |
| runs-on: ubuntu-latest |
OlderNewer