Coder Social home page Coder Social logo

cdn cdnjs.cloudflare.com 的地址,能否支持自己配置?因为有时候国内第一次访问不通,需要开VPN访问之后缓存一下才行,很不友好啊 about sanic-ext HOT 5 CLOSED

sanic-org avatar sanic-org commented on July 21, 2024
cdn cdnjs.cloudflare.com 的地址,能否支持自己配置?因为有时候国内第一次访问不通,需要开VPN访问之后缓存一下才行,很不友好啊

from sanic-ext.

Comments (5)

liujunzheng avatar liujunzheng commented on July 21, 2024 2

@ahopkins OK, thank you. After reading the source code, I need to redefine the new swagger HTML to overwrite the default swagger HTML to define the CDN problem. It is also a solution.

from sanic-ext.

ahopkins avatar ahopkins commented on July 21, 2024 1

If I understand correctly, you can change the CDN by creating a custom HTML template using the configuration options here.

https://sanicframework.org/en/plugins/sanic-ext/openapi/ui.html#config-options

from sanic-ext.

ahopkins avatar ahopkins commented on July 21, 2024

Can you please write your issue in English? While we try to have support in other languages, the development of the project is all in English.

If this is a support question, it should be made in the appropriate language channel in the Discord server.

from sanic-ext.

ahopkins avatar ahopkins commented on July 21, 2024

Templates you can use to start from are here

https://github.com/sanic-org/sanic-ext/tree/main/sanic_ext/extensions/openapi/ui

from sanic-ext.

ahopkins avatar ahopkins commented on July 21, 2024

@ahopkins OK, thank you. After reading the source code, I need to redefine the new swagger HTML to overwrite the default swagger HTML to define the CDN problem. It is also a solution.

Yes

from sanic-ext.

Related Issues (20)

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.