Giter Site home page Giter Site logo

Comments (5)

gaetschwartz avatar gaetschwartz commented on July 4, 2024 2

Feel free to PR - or I'll get around to it soon.

Working on a PR along a few other improvements :)

from dart_edge.

Ehesp avatar Ehesp commented on July 4, 2024 1

Oh, woops!

Yes it should be:

  Future<void> runBuild() async {
    final functionDirectory = Directory(
      p.join(Directory.current.path, 'supabase', 'functions', 'dart_edge'),
    );

    final entryFile = File(p.join(functionDirectory.path, 'index.ts'));

    final compiler = Compiler(
      logger: logger,
      entryPoint: p.join(Directory.current.path, 'lib', 'main.dart'),
      outputDirectory: functionDirectory.path,
      outputFileName: 'main.dart.js',
      level: CompilerLevel.O4,
    );

    await compiler.compile();

    await entryFile.writeAsString(
      edgeFunctionEntryFileDefaultValue('main.dart.js'),
    );
  }

Feel free to PR - or I'll get around to it soon.

from dart_edge.

Ehesp avatar Ehesp commented on July 4, 2024 1

Quickly fixed this in a standalone PR: c9c0fe3

from dart_edge.

Ehesp avatar Ehesp commented on July 4, 2024

Also the dev build will still work for now in prod, it's just less optimised.

from dart_edge.

solid-danylokhvan avatar solid-danylokhvan commented on July 4, 2024
Because every version of supabase_functions from git depends on edge from hosted and supabase_edge_functions depends on edge from git, supabase_functions from git is forbidden.
So, because supabase_edge_functions depends on supabase_functions from git, version solving failed.

When I'm trying to get supabase_functions 0.0.2+2 to fix building the supabase functions.

from dart_edge.

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.