Git Product home page Git Product logo

nextjs-aca's Introduction

Hi! ๐Ÿ‘‹

I'm a web developer at Ridgeway based in Witney, UK. Web development's also a hobby of mine so when I can find the time I'm working away on my own projects, which you can find here on GitHub.

๐Ÿ“ฌ You can find my blog and social links in my profile if you want to get in touch.

nextjs-aca's People

Contributors

cmeeg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nextjs-aca's Issues

Fails to run "azd provision" in section "adding a custom domain name"

Describe the issue:
An error occurred while running azd provision according to the "adding a custom domain name" section of README.md. The error is shown as following:
image

Repro Steps:

  1. Run npm i
  2. Run npm run env:init
  3. Run azd auth login
  4. Add SERVICE_WEB_CUSTOM_DOMAIN_NAME=www.xshtest.com in .env.local file
  5. Run azd provision

Expected behavior:
Run command azd provision successfully.

@CMeeg and @hemarina for notification.

Enabling compression via `next.config.js` results in timeouts for requests routed through Azure CDN

Description of issue / Reproduction steps

  • Next.js provides an option to enable compression of resources using gzip
  • After enabling this option and deploying to Azure any request for resources that our routed through the CDN result in a request timeout
  • To cut a long story short the issue is caused by Range requests issued from the CDN to the origin, and is described on the accepted answer to an issue raised here along with some potential solutions/workarounds:
    1. Disable caching in the CDN profile (this will cause CDN to not send range requests to the origin)
    2. Change the origin to ignore range requests (treating them as regular non-range requests and returning 200s instead of 206s)
    3. Disable compression at the origin
  • Disabling range requests from the CDN to the Origin doesn't look to be an option (or at least would be an uphill battle I'm sure) unfortunately as this behaviour is "baked in" to how the CDN functions

Expected behaviour

  • Requests for resources routed through the CDN to the origin receive an appropriate response in an appropriate timeframe

Actual behaviour

  • Requests for resources routed through the CDN to the origin consistently timeout and fail to respond

Running `azd provision` after `azd deploy` sets the `main` container app to use the hello world image

Description of issue / Reproduction steps

  • When running azd provision for the first time the image mcr.microsoft.com/azuredocs/containerapps-helloworld:latest is deployed to the main Container app
  • When running azd deploy the web service is built into an image and deployed to to main container app
  • If you run azd provision again after azd deploy the mcr.microsoft.com/azuredocs/containerapps-helloworld:latest is deployed to the main Container app again

Expected behaviour

  • When running azd provision after azd deploy the image deployed to the main Container app doesn't change

Actual behaviour

  • When running azd provision after azd deploy the image deployed to the main Container app changes to mcr.microsoft.com/azuredocs/containerapps-helloworld:latest

When running in a pipeline `azd provision` always sets the main container app to use the hello world image

Description of issue / Reproduction steps

  • The fix for #5 worked when running locally, but not when running in a pipeline
  • When running in a pipeline the SERVICE_WEB_IMAGE_NAME env var is not available so cannot be provided to the bicep deployment

Expected behaviour

  • When running in a pipeline azd provision should not change the image deployed to the main Container app

Actual behaviour

  • When running in a pipeline azd provision changes the image deployed to the main Container app to mcr.microsoft.com/azuredocs/containerapps-helloworld:latest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.